Home  >  Q&A  >  body text

node.js - socket.io 搭建了websocket,但是我用原生js却connect不上?

天蓬老师天蓬老师2713 days ago732

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:54:22

    You should use the front-end library provided by socket.io to connect

    reply
    0
  • 迷茫

    迷茫2017-04-17 14:54:22

    1. First check whether your server is normal
    2. There are multiple versions of websocket, and the verification method must be correct

    I have written before, there are at least two versions, and finally a round robin is added. As a communication that does not support websocket, any mobile phone or computer browser can communicate directly

    reply
    0
  • Cancelreply