interface MessageHandler (source)
A handler for all messaging related events, usable for both content and background scripts.
Ports are exposed to consumers (higher level components) because how ports are used, how many there are and how messages map to it is feature-specific and depends on the design of the web extension. Therefore it makes most sense to let the extensions (higher-level features) deal with the management of ports.
Invoked when a message was received as a result of a
Invoked when a Port was connected as a result of a
Invoked when a Port was disconnected or the corresponding session was destroyed.
Invoked when a message was received on the provided port.
Loads a file from the resources folder and returns its content as a string object.