Skip to Content
UsageWebSockets

WebSockets

Astraio supports WebSocket connections for real-time communication.

Connecting

  1. Select WebSocket as the request type
  2. Enter the WebSocket URL (ws:// or wss://)
  3. Click Connect

Sending Messages

Once connected:

  1. Type your message in the input field
  2. Click Send or press Enter
  3. Messages appear in the connection log

Message Types

TypeDescription
TextPlain text messages
BinaryBinary data (hex display)
JSONFormatted JSON messages

Connection State

StateDescription
ConnectingEstablishing connection
OpenConnection active
ClosingClosing connection
ClosedConnection closed

Headers

Add custom headers for authentication:

Authorization: Bearer <token>

Use Cases

  • Chat applications
  • Real-time notifications
  • Live data feeds
  • Gaming servers
Last updated on