Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging binary websockets frames

Packet analyzers like Wireshark, and Fiddler allows for low-level packet dump, and appears to be the recommended way to debug binary websocket frames. Major problems of this approach includes secure websocket layers, complexity, friction in the development process, amongst others.

Other than Wireshark, what browser native, or extension tools are available to see at least a hex dump of binary frames exchanged via Websockets?

edit: as of Chrome 56.0, only frames of textual websocket connections can be watched (by going debug console (F12) -> Network -> Selecting the websocket connection (to identify: it has 101 HTTP status code) -> Frames panel); binary packets still show up as "binary frame (Opcode 2)

like image 549
Silver Dragon Avatar asked May 12 '15 06:05

Silver Dragon


1 Answers

In Firefox you use Web Socket Monitor extension to get hex dump for binary packets.

Example of web socket monition

like image 60
Kshitij Avatar answered Oct 31 '22 08:10

Kshitij