I am stuck in Firefox. I could not get Websocket to work on this. I am using Tornado Websocket and I initialized it with the following code:
app = Application([(r'/mypath/ws', WSHandler)]) http_server = HTTPServer(app, ssl_options={ "certfile": "~/certs/websocket.crt", "keyfile": "~/certs/websocket.key" }) http_server.listen("443")
And I initialized it on the Javascript side as follows:
var WS = new WebSocket("wss://websocket.localhost/mypath/ws");
This code works fine in Chrome, meanwhile I created the certificate myself and launched the page under HTTPS. But Firefox continues to say that:
Firefox can't establish a connection to the server at wss:
I google and found too many thoughts, but none of them worked for me :(
Any help would be appreciated.
javascript python firefox tornado websocket
Fatih karatana
source share