Skip to content

WebSocket requests

Choose Add WebSocket in a collection or a section. WebSocket requests carry a WS stamp in the collection.

Enter a ws:// or wss:// URL. The URL, the query parameters and the handshake headers accept {{variable}}. You may set Sec-WebSocket-Protocol. Codestamp sets the other handshake headers itself, such as Host, Upgrade and Sec-WebSocket-Key.

Connect and Disconnect open and close the connection. wss:// checks the server certificate against your operating system’s certificate store.

A message is Text or JSON, and JSON has a Beautify button. Press Ctrl+Enter to send. Codestamp fills {{variable}} in the message when it sends, and dynamic values such as {{$guid}} work too. The log shows the text as you typed it, so secrets do not appear there.

The message log lists sent messages (an up arrow), received messages (a down arrow), connection info and errors. Each entry has a time and a size. You can filter by All, Sent or Received, and Clear empties the log. When the server closes the connection, the log shows its close code and reason.

  • The log keeps 500 entries.
  • A message over 64 KB shows only its first 64 KB, and a binary message shows its size.

Codestamp saves the URL, the headers and the last message in the collection. It closes the connection with code 1000 when you close the card. WebSocket sessions do not go into History.

Limit Value
Handshake 15 seconds
Message size 16 MB
Open connections 20 at once

Run all skips WebSocket requests.