Command Overview
Client-Side Operations
When usinguseRealtime in your React components:
| Operation | Commands | Count |
|---|---|---|
| Initial connection | SUBSCRIBE, XRANGE | 2 |
| Reconnection every 300 seconds | UNSUBSCRIBE, XRANGE, SUBSCRIBE | 3 |
| Ping to keep connection alive every 60 seconds | PUBLISH | 1 |
Server-Side Operations
When using the server-side API:| Operation | Commands | Count |
|---|---|---|
| Emit event | PUBLISH, XADD | 2 |
Emit with expireAfterSecs | PUBLISH, XADD, EXPIRE | 3 |
| Read history | XRANGE | 1 |