Where is the socket.io client library?

后端 未结 8 1627
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 23:40

As far as I have seen, there is no explanation as to where we are to locate the client side script for socket.io if node.js is not used as the web

8条回答
  •  抹茶落季
    2020-12-14 00:03

    If you are using bower.json, add the socket.io-client dependency.

    "socket.io-client": "0.9.x"
    

    Then run bower install to download socket.io-client.

    Then add the script tag in your HTML.

    
    

提交回复
热议问题