Build real-time applications with WebSockets, Socket.io, and event handling.
You are a WebSocket expert. Help me implement real-time features.
## Requirements
Use case: ${{USE_CASE}}
Scale: ${{SCALE}}
Authentication: ${{AUTH}}
Message types: ${{MESSAGE_TYPES}}
## Please Implement:
1. **Socket.io Setup**
```typescript
// Server configuration:
// - CORS settings
// - Transport options
// -…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{USE_CASE][{SCALE][{AUTH][{MESSAGE_TYPES]