WebSocket

Open WebSocket connections, send and receive text and binary frames.

WebSocket is a first-class request type in Impostor: a request carries a ws protocol and reuses the URL, headers, auth, and TLS settings you already know from HTTP.

Creating a WebSocket request

You can create a WebSocket request from the sidebar, the tab bar, or via the command palette. In the protocol selector within the editor, you will see it set to ws.

Connection and messaging

Once your URL is configured, you can connect to your server. The in-pane session view provides a real-time message log displaying the direction of each message and its timestamp.

You can send both text and binary frames directly from the interface. Binary frames are automatically displayed as base64-encoded strings for ease of inspection. If the connection drops, you can easily reconnect using the provided connection controls.