how to use socket.io in express4.x version routing? I"ve been looking for the answer for a long time. The Internet is full of express3.x version
.how to use socket.io in express4.x version routing? I"ve been looking for the answer for a long time. The Internet is full of express3.x version
.app.js var app = require( express )(); websocket ExpressAPPHTTP var http = require( http ).Server(app); socket.io var io=require( socket.io )(http); var users=[] connection connection io.on("connection",function(soc...