Sending Messages

Learn how to send and receive WebSocket messages.

Sending a Message

  1. Make sure you're connected to a WebSocket server
  2. Type your message in the text area at the bottom
  3. Click the send button or press Cmd/Ctrl + Enter
  4. Your sent message will appear on the right side

Message Format

You can send any text content. Common formats include:

Plain Text

Hello, World!

JSON (most common)

{
  "type": "message",
  "data": "Hello"
}

Receiving Messages

Incoming messages appear on the left side of the message area. Each message shows:

  • Message content (auto-formatted if JSON)
  • Timestamp

JSON Formatting

When a message contains valid JSON, it's automatically pretty-printed for easier reading. This works for both sent and received messages.

Managing Messages

  • Clear: Click the "Clear" button to remove all messages from the current session
  • Save as Template: Click "Save Template" to save the current message for reuse

Note: Messages are only stored in your browser session. They're not persisted to the server.