Socket Inspector

Real-time WebSocket debugger, right inside DevTools.

Screenshot of Socket Inspector viewing and creating WebSocket messages in the browser DevTools

Create your own messages

Build your message and send it over any WebSocket connection on the page. Simulate edge cases, reproduce bugs, and uncover security vulnerabilities without leaving DevTools.

  • Send WebSocket messages to the UI or the server

  • Powerful editor with JSON and raw text support

  • Built-in JSON formatter and syntax validator

Socket Inspector's text editor inside DevTools showing JSON editing with a built‑in formatter
Socket Inspector's close connection form, showing fields to select a close code and enter a close reason

Close connections on command

Take control of the WebSocket lifecycle. Simulate server disconnects to ensure your application's reconnection logic and error handling is robust and reliable.

  • Quickly test client-side reconnection logic and error recovery flows

  • No backend changes required

  • Supports standard WebSocket close codes and custom close reasons