Deploy a WebSocket service
Run a real-time WebSocket server and reach it over WSS through the platform edge.

What you'll run
A WebSocket server container on one port inside your instance. The node edge terminates TLS and proxies the upgrade, so clients connect with wss:// to the same HTTPS URL as any other site. No ports 80/443 need to be published.
docker-compose.yml
Set the origin port
In the dashboard, open Networking, set the web site origin port to 8080, and save. Then use the HTTPS URL with your WebSocket path:
Launch & verify
The edge forwards the original Host, Origin, and upgrade headers. Validate Origin in your server if you need to restrict which sites can connect.
Optional custom domain
Add an A record pointing at the node IP, attach the hostname under Custom domain, and use wss://your-domain.com/ws. Keep the DNS record DNS-only if your provider proxies traffic.
Practical -- try it now
WebSocket server in 5 minutes
- Provision an instance, SSH in, and run the compose file above.
- In Sites, set the web origin to 8080.
- Connect with websocat wss://<your-url>/ws.