Permalink
Browse files

include address

  • Loading branch information...
1 parent f7335b5 commit dc3c085214506c1ba2364e59cdb6f02e4f315115 @miyagawa committed Sep 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 server.coffee
View
@@ -19,6 +19,7 @@ io = require('socket.io').listen(app)
io.sockets.on 'connection', (socket) ->
socket.on '/push/post', (data) ->
data.time = (new Date).getTime()
+ data.address = socket.handshake.address.address
channel = '/pub/' + data.room
io.sockets.emit channel, data

0 comments on commit dc3c085

Please sign in to comment.