Protocol Specs
Real-time communication protocols
OCVR uses two protocols for real-time communication:
WebSocket Protocol
JSON-based protocol over WebSocket for:
- Real-time chat messages
- Presence updates
- Typing indicators
- Notifications
See WebSocket Protocol for the full specification.
OCCN Protocol
Binary TCP protocol for game-specific data:
- Player position/rotation
- World state synchronization
- Voice chat
- Physics updates
See OCCN Protocol for the specification (coming soon).
When to use which?
| Use Case | Protocol |
|---|---|
| Chat messages | WebSocket |
| Friend presence | WebSocket |
| Notifications | WebSocket |
| Player movement | OCCN |
| Voice chat | OCCN |
| World sync | OCCN |