bynk.service.websocket_multiple
Error A context holds more than one from websocket service — at v1 the Workers upgrade routes by the Upgrade: websocket header alone, so one WebSocket service per context (real-time track slice 3b).
A WebSocket upgrade reaches the context by its Upgrade: websocket header alone, with no path to tell two endpoints apart, so a context can host only one from websocket service. The compiler reports every one but the first by name. Keep one, or move the other into a context of its own.
Example
service lobby from websocket(in: Frame, out: Frame) { … }service rooms from websocket(in: Frame, out: Frame) { … } // ✗ a second WebSocket service in this context
service lobby from websocket(in: Frame, out: Frame) { … } // ✓ one per contextIn the Book
See also
- Every code in its category, Services, on the diagnostic index.
bynk explain bynk.service.websocket_multipleshows the same from the installed toolchain, without a network.