Files
sousa-gecko/dom/websocket
Andrew McCreight 0e27dfcbea Bug 2062469 - Make a separate protocol handler for web sockets. r=necko-reviewers,valentin
A web socket channel currently also serves as the protocol handler.
This is bad because a protocol handler should be a singleton that is
accessed via do_getService(). This patch adds a new WebSocketProtocolHandler
class as a protocol handler. The handler is used for wss or ws depending on
the bool that is passed in. The constructor always creates a new instance,
so this should be accessed via do_getService(), not do_createInstance().

Differential Revision: https://phabricator.services.mozilla.com/D317687
2026-08-12 14:40:46 +00:00
..