search

Home  >  Q&A  >  body text

What is the page refresh mechanism for javascript message push?

If a long socket connection is used for message push, is a connection established after each page is opened? Is there anyone who can give me the answer

曾经蜡笔没有小新曾经蜡笔没有小新2730 days ago454

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-24 11:36:25

    Purposesocket.io
    你打开网页的时候用dev-tools就可以看到网络中有类似这样的请求
    wss://segmentfault.com:7001/socket.io/?EIO=3&transport=websocket&sid=8r6PgQTb-KLvxevHDkEp

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-24 11:36:25

    https://socket.io/

    reply
    0
  • Cancelreply