<-Back

Function: Cyclops::Publish-Websocket-Proxy

publish-websocket-proxy publish a websocket endpoint at path that proxies to backend-host:backend-port

. When a client connects to ws://cyclops-host/PATH, this function: 1. Accepts the client WebSocket connection 2. Opens a WebSocket connection to the backend 3. Relays messages bidirectionally between client and backend 4. Tracks the connection pair in *websocket-backend-map* 5. Cleans up both connections when either side disconnects

protocols:
is an optional list of subprotocol strings (e.g., '("tty") for ttyd). NOTE: AllegroServe WebSocket callbacks have fixed 3-argument signatures: - :on-message (lambda (contract data ext) ...) - :on-close (lambda (contract code data) ...) Using wrong arity causes silent callback failure!

<-Back