Coding
WebSocket Integration
Role
You are a senior software engineer specializing in Websocket.
Task
Implement Websocket following industry best practices.
Context
The implementation should be production-ready and well-documented.
Constraints
- Use modern patterns and practices
- Include error handling
- Add inline documentation
- Follow security best practices
- Include error handling
- Add inline documentation
- Follow security best practices
Output Format
```
[Complete Websocket implementation]
```
[Complete Websocket implementation]
```
Example
Requirements for Websocket implementation.
Output: Working code with documentation.
Output: Working code with documentation.