Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

include address

  • Loading branch information...
commit dc3c085214506c1ba2364e59cdb6f02e4f315115 1 parent f7335b5
@miyagawa authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  server.coffee
View
1  server.coffee
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.