WebSocket
Install
See the Install guide for the full setup, including Windows PowerShell.
curl -fsSL https://install.skippr.io/install.sh | shClick to copyConnects to a WebSocket server and ingests received messages.
Configuration
source:
kind: websocket
url: "ws://localhost:8080/stream"
headers:
Authorization: ${WEBSOCKET_AUTH_HEADER}| Field | Default | Description |
|---|---|---|
url | (required) | WebSocket URL (ws:// or wss://) |
headers | Additional request headers | |
mode | stream | stream or batch |
Namespace: websocket.{url_host}
CLI
skippr connect source websocket \
--url wss://stream.example.com/v1 \
--headers Authorization='Bearer your-token' \
--mode stream| Flag | Description |
|---|---|
--url | WebSocket URL (ws:// or wss://) |
--headers KEY=VALUE | Additional request header; repeat for multiple values |
--mode | Consumption mode |
Authentication
Authentication is optional and depends on the upstream service. For security best practices, we strongly advise against storing authentication header values in skippr.yaml. Use environment variable interpolation instead: replace the relevant headers value with your own ${ENV_VAR} reference.
The relevant part of skippr.yaml looks like this:
source:
kind: websocket
headers:
Authorization: ${WEBSOCKET_AUTH_HEADER}Set the env var before running skippr:
macOS / Linux
export WEBSOCKET_AUTH_HEADER="Bearer your-token"Windows PowerShell
$env:WEBSOCKET_AUTH_HEADER = "Bearer your-token"Windows Command Prompt
set WEBSOCKET_AUTH_HEADER=Bearer your-tokenPermissions or Network Requirements
The runner must be able to reach the WebSocket URL and keep the connection open. If the service sits behind a proxy or firewall, allow outbound access to the target host and port.
Troubleshooting
| Symptom | Fix |
|---|---|
| handshake failed | Verify the URL, any required headers, and whether the endpoint expects ws:// or wss://. |
| connection drops repeatedly | Check idle timeouts, keepalive settings, and proxy or firewall behavior between the runner and server. |
Next steps
- Pair this source with a destination from Destination Connectors.
- See How It Works for the end-to-end pipeline flow.
Install
See the Install guide for the full setup, including Windows PowerShell.
curl -fsSL https://install.skippr.io/install.sh | shClick to copy