Can not established Websocket secure connection on Firefox

后端 未结 6 1603
傲寒
傲寒 2020-12-06 11:03

I am stucked with Firefox. I could not make Websocket work on it. I use Tornado Websocket and I initialized it by code below:

app = Application([(r\'/mypath/         


        
6条回答
  •  执笔经年
    2020-12-06 11:57

    I was pulling my hair out over this one for a while. I was getting all kinds of cryptic error messages depending on different web browsers, that all made it sound like it was something about certificate exceptions. I had already made exceptions in Firefox and Chrome,

    It turned out I had a typo in my sub-protocol string in my Javascript!

    Correcting the sub-protocol string made everything better. More information on WebSockets and using sub-protocol(s): https://developer.mozilla.org/en-US/docs/Web/API/WebSocket

提交回复
热议问题