How to send some data from background.ts to content.ts file
I am trying to send a string from background.ts file to content.ts file. But I cannot find any documentation for that. I even tried with relay message but I am unable to get anything. Can anyone please help
1 Reply
You have to start at the content.ts and open a continuous connection with the background. See https://docs.plasmo.com/framework/messaging#ports
Plasmo Docs
Messaging API – Plasmo
The Plasmo messaging API is a powerful tool for sending real-time messages between different parts of your extension.