Websocket
Web sockets¶
Next to the main Laputa server, a second one runs and handles the websocket communications.
Both share the same configuration (config.yml).
Development¶
Run the websocket server using: python laputa/websocket_server.py --port PORT.
Production¶
In production, the websocket server doesn't listen directly through a port, but uses a UNIX socket.
It's then expected that another webserver, like nginx, serves as reverse proxy to dispatch calls from /ws to the websocket server.