MagneticSpark
MagneticSpark
Explore posts from servers
PD🧩 Plasmo Developers
Created by MagneticSpark on 2/12/2024 in #👟framework
How to listen to a Port's disconnect event?
I created an entry file in background/ports/foo.ts, and I'd like to listen to onConnect/onDisconnect events (I want to know when the user has closed a certain tab). Is there a standard way to do this with plasmo?
7 replies