WebSockets
Astraio supports WebSocket connections for real-time communication.
Connecting
- Select WebSocket as the request type
- Enter the WebSocket URL (
ws://orwss://) - Click Connect
Sending Messages
Once connected:
- Type your message in the input field
- Click Send or press
Enter - Messages appear in the connection log
Message Types
| Type | Description |
|---|---|
| Text | Plain text messages |
| Binary | Binary data (hex display) |
| JSON | Formatted JSON messages |
Connection State
| State | Description |
|---|---|
Connecting | Establishing connection |
Open | Connection active |
Closing | Closing connection |
Closed | Connection 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