Https/Websocket #1780
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A WS connection upgrades from an HTTP connection. In other words, you can upgrade to WS on https://0.0.0.0:443/websocket or https://0.0.0.0:443/someuri or https://0.0.0.0:8000 or https://0.0.0.0:someport or https://0.0.0.0:someport/someuri. The choice is yours. You just need some way to know where to upgrade to WS, be it a different port or some unique URI |
Beta Was this translation helpful? Give feedback.
A WS connection upgrades from an HTTP connection.
You can have as many listeners in as many ports as your memory allows.
In every listener you can have as many URIs as you want and upgrade those to WS, it doesn't have to be a separate port; just check any of the many other examples and tutorials like for example the device dashboard or the json-rpc processor. http://mongoose.ws/tutorials
In other words, you can upgrade to WS on https://0.0.0.0:443/websocket or https://0.0.0.0:443/someuri or https://0.0.0.0:8000 or https://0.0.0.0:someport or https://0.0.0.0:someport/someuri. The choice is yours. You just need some way to know where to upgrade to WS, be it a different port or some unique URI