SocketCluster / socketcluster

Highly scalable realtime pub/sub and RPC framework
https://socketcluster.io
MIT License
6.15k stars 314 forks source link

Support both http: and https: ports simultaneously #518

Closed jbemmel closed 3 years ago

jbemmel commented 5 years ago

For my application some clients/flows need to use https:, and some things can be handled over plain http. I tried instantiating 2 SocketCluster objects, but it will only allow me to instantiate one (singleton)

Ideally, in the SocketCluster options, one would be able to specify a list of ports, with protocol options for each

jondubois commented 3 years ago

It's better to explicitly create a new socket if the first URL fails. It's clearer if this is handled explicitly in your own application logic.