this project is a simple cocos creator project implements socket.io function on cocos. clients: retuire socket.io client's "socket.io" code stores in assets/Script/socket.io.js server: node.js rely on socket.io server install socket.io method:
npm install socket.io
server's main code is server.js,by using:
node server.js
to start the server,then run client code, you will see the result.