Avoid “destroying non-socket.io upgrade” error

前端 未结 2 708
醉酒成梦
醉酒成梦 2021-01-06 14:27

I am trying to make a socket.io based server but whenever I connect by client to it using dojo, it shows me this error:

    debug - destroying non-socket.io          


        
相关标签:
2条回答
  • 2021-01-06 14:37

    Setting "destroy upgrade" to false on socketio server configuration will fix this problem.

    0 讨论(0)
  • 2021-01-06 14:52

    Socket.io is both a server and client side library for node.js. I'm guessing Dojo's websocket client is not directly compatible with the socket.io server. I would suggest just using the socket.io client for connections, otherwise you will probably have to modify Dojo's websocket library which will probably be difficult.

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