How to run socket.io (client side only) on apache server

后端 未结 2 1308
太阳男子
太阳男子 2021-01-14 22:21

I want to run client side of socket.io on my apache server.

I have uploaded the socket.io directory to my web server and tried the simple client connection example f

2条回答
  •  星月不相逢
    2021-01-14 22:52

    Copy all the files in socket.io\node_modules\socket.io-client\dist to your apache server for example to the js folder. Then add the socket.io.min.js to your page.

    
    
    

提交回复
热议问题