Reputation: 6547
Some websites use websockets. How is it possible to check what socket connections are open and on what ports they are open?
I basically wants to browse to a website and be able to monitor which websocket connections it opens.
Should I use a sniffer program for this such as fiddler or can I use Chrome or Firefox developer tools for this?
Upvotes: 19
Views: 41988
Reputation: 813
If you don't need to automate the websocket inspection (i.e. doing it "by hand", one website by one, with your own browser) :
You can open the Chrome console (CTRL+SHIFT+J) then under the network tab you'll find the websockets currently opened and you'll be able to see the frames that have been exchanged with the server.
But it's not clear if you want to do that by yourself with your browser or if you want to automate the process to automatically scan some websites to look for websocket usage (i.e. using a script) ?
If so, maybe you should take a look at the Chrome driver or even a testing framework like geb (or Selenium, Cucumber, ...).
Upvotes: 21