Definition
Client-to-server messages are control messages. A control message has anaction, optional requestId, and action-specific fields. Server-to-client messages are acknowledgments or pushed events.
Lifecycle
Connect
Open
wss://relayer.xoxno.com/ws for subscriptions, broadcast, and relay. Use wss://relayer.xoxno.com/ws/stats only for push-only network stats.Read the acknowledgment
Match
requestId when present. Acknowledgment success means the Relayer accepted the control message; future event delivery still depends on matching chain activity.Limits
| Action | Limit |
|---|---|
| Active topics | 64 per connection |
| Message size | 4 MB |
| Gas stats debounce | 50 ms, with 5 s periodic fallback |
| Network stats interval | Adaptive, default about 6 s, clamped 500 ms to 30 s |
Worked Example
Reconnect Rules
| Case | Client action |
|---|---|
| Socket closes | Reconnect with exponential backoff and jitter |
| Reconnect succeeds | Re-subscribe to required topics |
| Topic limit reached | Unsubscribe from inactive topics or open another connection |
| Duplicate event risk | De-duplicate by transaction hash, address and nonce, or event timestamp depending on topic |

