Skip to content
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jbbcst
Comment options

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants