4
votes

Is there any way of observing WebSocket events from an addon?

E.g. at the moment, for HTTP Requests, I might add an observer to the observer service for http-on-modify-request or http-on-examine-response topics: I can't see any reference to WebSockets in the list of observer notifications.

Any help would be greatly appreciated.

1
I don't think there is anything. Looking at the code, WebSockets don't send any notifications whatsoever. This might be worth filing a bug on bugzilla.mozilla.org, I think that they should send out at least the same http-on-modify-request notification as regular HTTP channels. - Wladimir Palant

1 Answers

0
votes

I ran wireshark to check my websocket events. Also you can just put logs in