Paul Krill
Editor at Large

Firefox adds a WebSocket inspector

news
Oct 21, 20192 mins

New tool in Firefox DevTools allows you to inspect WebSocket traffic to troubleshoot connection problems

blazing speed leaving a glowing trail along a road
Credit: Thinkstock

Firefox 71 will include a built-in WebSocket Inspector, a tool to inspect WebSocket connections. The tool is already available in Firefox Developer Edition 70, an experimental version of the browser.

Found in the Network UI panel in the Developer Edition network panel, the WebSocket Inspector lets users see actual data transferred in WebSocket frames. The WebSocket Inspector leverages the Socket.IO event-based communication engine and SockJS WebSocket emulation client.

Payloads based on these protocols or plain JSON can be parsed and displayed in an expandable tree for inspection. Raw data sent over the wire can be seen as well. A pause/resume button in the Network panel allows you to stop intercepting WebSocket traffic, so you can capture only the frames of interest. Plans call for expanding the tool to support the SignalR library as well. Other goals for the tool include adding support for the following:

  • A binary payload viewer.
  • Exporting of WebSocket frames.
  • Indication of closed connections.

The WebSocket API is used to forge persistent connections between web clients and servers. It is primarily used in applications needing real-time communications.

Where to download Firefox Developer Edition

You can download Firefox Developer Edition from mozilla.org. Feedback on the Firefox WebSocket Inspector is welcome.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author