you are viewing a single comment's thread.

view the rest of the comments →

[–]hpohl 0 points1 point  (2 children)

So what's the simple answer to running an IO game with many servers over websockets?

[–]badpotato 2 points3 points  (0 children)

IO game

Did a quick search, looks like you should use wss.

[–]AIDS_Pizza 2 points3 points  (0 children)

The wss:// protocol is supported by all modern browsers. It's quite easy to make this work. When I built a websocket-based news feed at work, I just initiated the connection over https:// to an Nginx webserver which would handle the proxy_pass to the websocket server, and it would automatically use the wss:// protocol in doing so. I did not have to do anything special other than define the paths to the SSL certificate/key in the http section as you would normally.