Websocket client on STM32 board <--> websocket server on raspberry pi #2992
-
Hi, i have following setup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please take the time to learn the technology you are using. https://mongoose.ws/documentation/tutorials/websocket/websocket-server/ Whatever else you have on your network or your VPN is beyond our analysis, you should know your network. |
Beta Was this translation helpful? Give feedback.
Please take the time to learn the technology you are using.
Please read the tutorials again, understand them, do the examples as suggested; we never access a WebSocket server with an HTTP client, thing you are doing.
A WebSocket server "upgrades" an HTTP connection, that is what you are seeing because you are not using a WebSocket client (thing we do in our tutorials; in fact, there is a JS client in the server example https://github.com/cesanta/mongoose/blob/master/tutorials/websocket/websocket-server/test.html and there is an indication in the tutorial to use it)
mongoose/tutorials/websocket/websocket-server/README.md
Line 1 in 7b296fa