Command Type
Command Type ID: 2Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| timeout | number | Timeout for the command in milliseconds | Yes |
| closeAfterMessage | number | Number of messages to receive before closing the connection | No |
Usage Examples
Listen for 30 Seconds
Listen for Exactly 1 Message
Listen for 10 Messages
Related Commands
- Web Socket Connect - Establish the connection first
- Web Socket Send - Send a subscription message before listening
- WebSocket V2 - Advanced WebSocket with event-driven hooks