Command Type
Command Type ID: 1Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| url | string | WebSocket server URL | Yes |
| timeout | number | Timeout for the command in milliseconds | Yes |
| ciphers | string | Cipher suites override (optional) | No |
| headers | object | Custom headers for the WebSocket handshake | No |
| protocol | string | WebSocket sub-protocol | No |
| proxy | ProxySettings | Proxy settings | No |
ProxySettings
| Field | Type | Description | Required |
|---|---|---|---|
| host | string | Proxy server hostname or IP | Yes |
| port | string | Proxy server port | Yes |
| protocol | string | Proxy protocol (e.g., http) | Yes |
| auth | object | Proxy authentication credentials | No |
| link | Link | Link proxy configuration | No |
Usage Examples
Basic Connection
Connection with Headers
Connection via Proxy
Related Commands
- Web Socket Send - Send a message after connecting
- Web Socket Listen - Listen for incoming messages
- WebSocket V2 - Advanced WebSocket with event hooks