- Open Firebug on this page: http://www.websocket.org/echo.html
- Enable and switch to the Net Panel
- On the webpage, click on the "Connect" button |=> A new request should appear in the Net Panel
- Expand the information about the request |=> A "Headers" and a "Frame" [1] tabs should be proposed
- Switch to the "Frame" tab |=> The content of the tab is empty
- On the webpage, click on "Send" |=> Two new entries appear, one displaying the data sent by the client, the other displaying the data returned by the server [2]
- On the webpage, click on disconnect |=> The request is put in grey, and a new entry should appear in the "Frame" tab saying "Connection closed", with the reason and the code.
And the request should also appear in the Console at the connection.
[1] just a reuse of the name chosen by Web Inspector, though we can choose another name [2] I think of a 2-rows table with the data sent by the client and by the server, but maybe it clutters the display a bit?
Documentation: https://developer.mozilla.org/en-US/docs/WebSockets/WebSockets_reference
Florent
Comment #1
Posted on Mar 25, 2013 by Massive WombatThis would be really cool! Any ideas how we should intercept the HTTP communication to collect data we want to display in the Net panel?
Honza
Comment #2
Posted on Mar 25, 2013 by Happy DogNot sure... Could this do the trick? https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIWebSocketListener
Florent
Comment #3
Posted on Mar 25, 2013 by Massive WombatYep, this sounds promising.
Honza
Comment #4
Posted on Apr 29, 2013 by Happy HippoIs this happening ? Any alpha / beta branches ?
Comment #5
Posted on Jul 1, 2013 by Helpful WombatThe status "Triaged" of this issue means that the issue was just reviewed, but work on this didn't start yet.
Sebastian
Comment #6
Posted on Sep 16, 2013 by Massive DogHi, Can any of the project members give an estimate of by which version this feature will be available?
-- Sam
Comment #7
Posted on Sep 18, 2013 by Grumpy ElephantHi, I am also looking for this kind of feature. Found it on Chrome Developer Tools but would love to see it in Firebug too.
Ben
Comment #8
Posted on Sep 18, 2013 by Massive WombatThe feature is on our roadmap and we are definitely planning to have it in the next Firebug version. My (rough) time estimate could be something like 4-5 months.
Honza
Comment #9
Posted on Oct 18, 2013 by Helpful Wombat[2] I think of a 2-rows table with the data sent by the client and by the server, but maybe it clutters the display a bit? The important point is to distinguish sent from received messages, which isn't clear in the Chrome DevTools. Do you mean a 2-rows or a 2-columns table? I created two mockups of how I imagine that.
Sebastian
- webSocketDataOneColumn.png 48.73KB
- webSocketDataTwoColumns.png 55.27KB
Comment #10
Posted on Aug 8, 2014 by Swift WombatHey, I was looking for a way to debug websockets using Firebug and came across this. Is this still on the roadmap or something? Note: I prefer the two-columns format (webSocketDataTwoColumns.png).
Comment #11
Posted on Aug 28, 2014 by Quick RabbitAny update?
Comment #12
Posted on Aug 28, 2014 by Helpful WombatIt's currently off the radar as the Firebug team is working on integrating Firebug with the DevTools at the moment. This means it will be able to reuse the features provided by the built-in DevTools. You may therefore follow https://bugzil.la/885508.
Sebastian
Status: Triaged
Labels:
Type-Enhancement
spy
net
1.12-a3
Test-case-available