05-03-http-server-std/ #125
Replies: 1 comment
-
|
I would add a ws.flush() after the request.respondWebSocket function otherwise the connection might not get upgraded and keeps being in a connecting state. Here in the example it only works because the buffer is small and the writeMessage function flushes internally but if you don't send a message directly this code doesn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
05-03-http-server-std/
https://cookbook.ziglang.cc/05-03-http-server-std/
Beta Was this translation helpful? Give feedback.
All reactions