How to Use WebSockets on Divio Cloud
Enable WebSockets in Your Application
Ensure your application is set up to handle WebSocket connections. This typically involves configuring your backend using libraries or frameworks such as:
- Django Channels
- Flask-SocketIO
- Socket.io for Node.js
Secure Your WebSocket Connection
For production environments, always use wss://
(WebSocket Secure) to ensure encrypted communication.
Deploy on Divio Cloud
Deploying your application to Divio Cloud is straightforward. Divio Cloud natively supports WebSocket connections.