0

I am using socket.io

Like when there is normal http request we get to see LOGS in firebug

But in socket.io i am not able to see LOGS in firebug

Is there any way to see this logs Or I am missing something ?

socket.io demo

Mr punch
  • 1,756
  • 4
  • 16
  • 23
  • 1
    Use something like Wireshark? Or google "debug websocket" – RobIII Dec 24 '15 at 20:32
  • @RobIII i searched and came to know that **socket.io internally uses web sockets** and got this [link](http://stackoverflow.com/questions/8952773/chrome-web-inspector-web-socket-debugging) can you post this as an answer – Mr punch Dec 24 '15 at 20:48

2 Answers2

0

I don't know about firebug (there seems to be an extension) but Chrome (apparently) supports this. You could also try / resort to tools like Wireshark and/or Fiddler.

Key here is that socket.io is basically (usually) just websockets.

Community
  • 1
  • 1
RobIII
  • 8,488
  • 2
  • 43
  • 93
0

Firebug does not support inspection of WebSocket communication, but there is an enhancement request for this. Though as Firebug is obviously discontinued, you may rather have a look at the enhancement request for the Firefox DevTools.

There is also an extension called WebSocket monitor (written by the main contributor of Firebug), which adds a WebSocket inspection panel to the DevTools.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132