Programming!
NodeJS Socket.IO Query Parameter 넘기기.
eclipse4j(Grissom)
2012. 2. 3. 20:49
- Client
io.connect('http://localhost:8080?myChannel=eclipse4j');
...
- Server
io.sockets.addListener('connection', function(socket){
console.log(socket.handshake.query.myChannel);