Open
Bug 1565166
Opened 5 years ago
Updated 2 years ago
Use events in WebSocketTransport instead of function hooks
Categories
(Remote Protocol :: Agent, enhancement, P3)
Remote Protocol
Agent
Tracking
(Not tracked)
NEW
People
(Reporter: ochameau, Unassigned)
Details
WebSocketTransport
implement EventEmitter API, but most, but not all interactions (close event for example) with Connection
class is done via the hooks
constructor argument.
https://searchfox.org/mozilla-central/source/remote/server/WebSocketTransport.jsm#15-16
It would be easier to follow if WebSocketTransport would only emit events and Connection would only listen for events.
Comment 1•5 years ago
|
||
Note that this file is essentially a near-identical copy of
https://searchfox.org/mozilla-central/source/devtools/shared/transport/websocket-transport.js,
not that this prevents us from making more substantive changes to
it that suits us.
Updated•5 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal normal → S3 S3
You need to log in
before you can comment on or make changes to this bug.
Description
•