Connecting
How to establish and manage WebSocket connections.
URL Format
WebSocket URLs use special schemes instead of http:// or https://:
ws://Unencrypted WebSocket (like HTTP). Use for local development.wss://Encrypted WebSocket over TLS (like HTTPS). Use for production.Example URLs:
wss://echo.websocket.org
ws://localhost:8080/ws
wss://api.example.com/graphql
Connection States
WebSocket connections go through several states during their lifecycle:
Authentication
WebSocket authentication happens during the initial HTTP handshake. Tigrister supports three authentication methods in the Auth tab:
Sends an Authorization: Bearer <token> header.
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Sends username and password as Base64-encoded Authorization: Basic <base64> header.
Authorization: Basic dXNlcjpwYXNzd29yZA==
Sends API key as a custom header. Configure the header name (e.g., X-API-Key).
X-API-Key: your-api-key-here
Note: Authentication headers are only sent during the initial handshake. If you need to authenticate after connecting, send an authentication message through the WebSocket itself (server-specific implementation).
Connection Info
After a successful connection, Tigrister displays negotiated protocol information in the footer:
- •Status: Current connection state
- •Protocol: Negotiated subprotocol (e.g.,
graphql-ws,chat). Shown in parentheses if available. - •ID: Unique connection identifier for this session
Quick Connect
- 1Enter the WebSocket URL (ws:// or wss://)
- 2(Optional) Configure authentication in the Auth tab
- 3Click Connect or press Enter
- 4Wait for status to turn Connected