Where is the socket.io client library?

后端 未结 8 1637
佛祖请我去吃肉
佛祖请我去吃肉 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:00

    The best way I have found to do this is to use bower.

    bower install socket.io-client --save
    

    and include the following in your app's HTML:

    
    

    That way you can treat the socket.io part of your client the same way you treat any other managed package.

提交回复
热议问题