Dialogue Configuration
The main configuration object passed to createDialogue.
Full Configuration Example
Configuration Options
CORS Configuration
By default, Dialogue enables CORS for all origins, making it easy to develop with frontend and backend on different ports. CORS is applied to both HTTP requests (Socket.IO polling) and WebSocket connections.
CorsConfig Options:
DialogueContext
All authentication and event hooks receive a DialogueContext object providing global runtime awareness:
Example usage in hooks:
See Also
- Lifecycle Hooks - Configure hooks option
- Room Configuration - Configure rooms option
- Authentication - Auth setup and JWT