How to view Web socket response in browser?

I am using Google Chrome version 24

I am viewing a website where the data is being fetched to the front end by websocket call.

My question is, "Is it possible to view the web socket response from the browser?" Are there any such tools?

Please let me know, thanks in advance.

Answers


Yes this is possible. Look at the Network pane in Dev Tools and look for the line that says Switching Protocols

The caveat is you need to close and reload the detail pane as it does not auto-refresh (as of Chrome 25)

Possible duplicate: Debugging WebSocket in Google Chrome (though definitely dated information, much has changed since those answers were posted)

This is pretty close to 'up-to-date' information as of (2013-03-20) http://codetheory.in/websocket-traffic-inspection-in-chrome-developer-tools/


On the Chrome inspector, click the Network tab.

Link


Need Your Help

How to Create sub DataTable from an existing DataTable

c# datatable

I have a DataTable(dataTable1) that have 25-30 columns. I want to bind a DataGridView by creating a small DataTable (dataTable2) that will have few columns (may 5-10) from the existing DataTable.

C# HttpClient.SendAsync throw "An error occurred while sending the request" exception when testing some URLs

c# .net http dotnet-httpclient

I am developing an C# console application for testing whether a URL is valid or works. It works well for most of URLs and can get response with HTTP Status Code from target website. But when testin...