wss tornado connection issues

前端 未结 2 1853
梦毁少年i
梦毁少年i 2021-01-24 12:02

Tornado Server

ssl_options = {
        \"certfile\": \"server.crt\",
        \"keyfile\": \"server.key\"
}
application=Application()
server=tornado.httpserver.HT         


        
相关标签:
2条回答
  • 2021-01-24 12:27

    The tornado error message means that an http request is being sent to an https port. I was loading the javascript from an http url, changing that to https solved the problem.

    0 讨论(0)
  • 2021-01-24 12:28

    The browser is probably trying to show you the "do you accept this self-signed certificate" dialog, but can't because the websocket connection is invisible. To use wss: with a self-signed certificate you must first visit a regular html page with that certificate so you can accept it.

    0 讨论(0)
提交回复
热议问题