A WebSocket client with Socket.IO and MQTT

Enter a ws:// or wss:// URL and connect. Send text or JSON, read every message in a log, and keep the messages you send often with the request. In the browser, WebSocket connections go straight from your computer.

Connect and send

  1. 1Enter a ws:// or wss:// URL. Send becomes Connect. Placeholders in the URL and headers are filled in from the active environment.
  2. 2Connect. The status reads Connecting, then Connected. Each tab keeps its own session, and closing the tab ends it.
  3. 3Type a message and press Ctrl+Enter. Variables and dynamic values such as {{$randomEmail}} are filled in when the message is sent, and the log shows it as it went out.
  4. 4Save the messages you reuse. Saved messages are part of the request, so they travel with exports and with the collection folder in Git.
A WebSocket session connected to ws://localhost:4000/live: a hello message, a subscribe message that was sent and three order events received in the log

Socket.IO

Choose Socket.IO in the protocol list to talk to a Socket.IO 3 or 4 server. The URL path is the namespace, Path changes /socket.io/ for servers set up with another one, and Auth payload is the JSON object the server reads as socket.handshake.auth. Type an event name and its argument; received events show their name above the arguments, and acknowledgements show with their id.

A Socket.IO session that joined the / namespace, received a welcome event, emitted question with a JSON argument and received question:ack back

MQTT over WebSocket

Choose MQTT to talk to a broker over MQTT 3.1.1 on WebSocket, such as ws://localhost:8080/mqtt. Subscribe to a topic filter like sensors/#, publish to a topic at QoS 0, and read each message under its topic. Basic auth sends a user name and password. Brokers that only listen on TCP port 1883, without WebSocket, cannot be reached.

An MQTT session subscribed to sensors/#, receiving readings on sensors/warehouse and sensors/cold-store

SignalR and GraphQL subscriptions

  • SignalR hubs with the JSON protocol: Gostman negotiates, completes the handshake, sends invocations and answers pings. MessagePack is not supported.
  • GraphQL subscriptions with the graphql-transport-ws protocol used by graphql-ws and Apollo Server. The older subscriptions-transport-ws protocol is not supported.
A GraphQL subscription over WebSocket: the connection is acknowledged, then each result arrives as next

The message log

  • Each entry shows a time, whether it was sent, received, info, a warning or an error, and the text, with a button to copy it
  • The log keeps the latest 1000 entries; text longer than 10,000 characters is shortened, and binary messages show as hexadecimal bytes
  • Auto-reconnect waits 3 seconds after a connection closes or fails and tries again

Browser and desktop

A browser can set only the Sec-WebSocket-Protocol header on a WebSocket, so the web app sends that one and lists the others it cannot send. The desktop app sends every header, including Authorization.

WebSocket requests live in the same collection as your REST calls, with the same environments and variables. They are interactive sessions, so the collection runner and gostman run skip them.

How Gostman compares with other WebSocket clients

How Gostman compares with other WebSocket clients
FeatureGostmanPostmanHoppscotch
In the browser, no installGostmanIncluded: Connects straight from the browserPostmanPartial: Web app needs sign-inHoppscotchIncluded: hoppscotch.io
Desktop appGostmanIncluded: Sends every headerPostmanIncluded: YesHoppscotchIncluded: Yes
Works without an accountGostmanIncluded: No accounts at allPostmanPartial: Collections need an accountHoppscotchIncluded: Sign-in optional
Open sourceGostmanIncluded: MITPostmanNot included: Not open sourceHoppscotchIncluded: MIT
Socket.IOGostmanIncluded: Socket.IO 3 and 4PostmanIncluded: YesHoppscotchIncluded: Yes
MQTTGostmanIncluded: MQTT 3.1.1 over WebSocketPostmanIncluded: YesHoppscotchIncluded: Yes
Requests as files in GitGostmanIncluded: Saved messages travel with the requestPostmanIncluded: Native Git, on FreeHoppscotchPartial: JSON export

Checked against each tool's own docs and pricing pages in November 2026. Plans change, so check them before you decide.

Questions about the WebSocket client

Can I test a WebSocket online without installing anything?

Yes. Open gostman.com/web, enter a ws:// or wss:// URL and select Connect. The connection goes straight from your browser, not through a server.

Can I send an Authorization header on a WebSocket?

In the desktop app, yes: it sends every header. In the browser only Sec-WebSocket-Protocol can be set, because browsers do not allow other headers on a WebSocket. Socket.IO servers can read a token from the Auth payload instead.

Does it support Socket.IO?

Yes, Socket.IO 3 and 4, with namespaces, a custom path, an auth payload, events and acknowledgements.

Can it connect to an MQTT broker?

Yes, over WebSocket with MQTT 3.1.1. Brokers that only accept plain TCP on port 1883 cannot be reached.

Does it reconnect automatically?

Turn on Auto-reconnect and Gostman waits 3 seconds after the connection drops, then tries again.

Is it free?

Yes. Gostman is open source with no account and no paid tier.

WebSocket in the docsSocket.IOMQTT