onMessage chain to terminate the connection once the desired condition is met.
Command Type
Command Type ID: 9Parameters
No parameters. This command takes no configuration.Usage Examples
Close After Receiving Target Data
Used at the end of anonMessage chain to stop the connection once desired data has been collected:
Common Use Cases
- Single-Response Collection: Connect, receive one meaningful message, then close
- Conditional Termination: Combined with If-Else, close only when a stopping condition is met
Related Commands
- WebSocket V2 - The parent command
- If-Else - Conditionally trigger a close