Enable SSE on all channels
Categories
(DevTools :: Netmonitor, task, P3)
Tracking
(firefox82 fixed)
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: Honza, Assigned: Honza)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Let's enable support for SSE in all channels as soon as it's ready.
Pref: devtools.netmonitor.features.serverSentEvents
Honza
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Assignee | ||
Comment 4•4 years ago
|
||
Support for Server Side Events (SSE) should be documented on MDN
Note that we already have MDN page for inspecting WebSockets here:
https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/Inspecting_web_sockets
There are some test cases that can be used to generated screenshots:
WebSockets
- Load http://janodvarko.cz/test/websockets/
- Open DevTools and select the Network panel
- Click the
Connect
button on the page - Select the new Request entry in the panel
- Select the Response side panel
- Click
Send
button to send (and receive) a WS frame - Inspect frames in the side panel
ServerSide Events
- Load https://farooqar.github.io/sse-echo/
- Open DevTools and select the Network panel
- Set the minimum delay (in seconds) between each even to
1
- Click the
Connect
button on the page - Select the new Request entry in the panel
- Select the Response side panel
- Inspect events in the side panel
Both WS and SSE are sharing the same UI - i.e. all messages (events and frames) are displayed in the Response panel as list where the user can:
- Select individual messages and see the payload at the bottom of the panel
- Inspect the payload as a raw text or an expandable tree (in case of known format, e.g. JSON)
- Filter, customize columns, etc. (just like for WS, see https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/Inspecting_web_sockets)
Supported protocols for SSE:
- Mercure protocol (bug 1645116)
- JSON
New supported protocol for WS:
- STOMP (bug 1606626)
- STOMP inside SockJS (bug 1667751)
We should update the list in this section:
https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/Inspecting_web_sockets#Expanding_each_message
Honza
Comment 5•4 years ago
|
||
I've created a page to document SSE in the Netmonitor; see https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/Inspecting_server-sent_events.
I've also updated the outdated sections of https://wiki.developer.mozilla.org/en-US/docs/Tools/Network_Monitor/Inspecting_web_sockets, and added the new protocol support.
Assignee | ||
Comment 6•4 years ago
|
||
@Chris: this is great, thanks for working on this!
Honza
Description
•