Open KradekMFC opened 9 years ago
Sounds good, but when I tried to use wss:// I was unable to connect whatsoever. Their serverconfig.js doesn't specify which (if any) of the servers support SSL.
I ran into a similar issue when trying to connect from inside a browser, except my problem was largely because I was on HTTPS. For some reason that I'm failing to grasp every time I attempt to access MFC's WSS chat servers from my domain, it failed. The kicker here is I can't fallback to MFC's WS because HTTPS won't allow it (at least without a workaround from the user's end)
My solution was to grab the list of MFC's chat servers and set up an nginx reverse proxy for my domain, that was HTTPS on the front and proxied MFC's WS servers. Then modify the section of code in my copy of MFCSocket to connect via the proxy and keep my green padlock!
In case it's useful in any way, I've made a gist with the pertinent nginx configuration to duplicate what I've accomplished.
Looks like MFC has added some secure web sockets. MFCSocket should add support to connect over wss when possible.