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

后端 未结 2 1324
太阳男子
太阳男子 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:46

    Copy the distributable .js to your own javascript folder. In my case, I'm ussing xampp:

    C:\xampp\htdocs\nodejs\node_modules\socket.io\node_modules\socket.io-client\dist
    

提交回复
热议问题