Any command can be executed as long as it takes input from stdin and writes to stdout, as this is how it will communicate with the WebSocket client. The command does not need to know that it is talking to a Web Socket client; just use stdin and stdout.
Caddy will not make any effort to keep the backend process alive while a client is connected. It is the developer’s responsibility to ensure the program does not terminate until the client is ready to close the connection or would be ready for it to terminate.
- path is the base path to match with the request URL
If path is omitted, a default path of / is assumed (meaning all requests).
websocket /echo cat
Join us in the , where the open source community gathers to share their knowledge.