Skip to content

Commit

Permalink
Merge pull request #113 from BinaryThumb/master
Browse files Browse the repository at this point in the history
Fixing echo back bug in socket.io
  • Loading branch information
wmertens committed Aug 1, 2012
2 parents c1b3c54 + dfaf193 commit 53bc389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/socketio.coffee
Expand Up @@ -79,7 +79,7 @@ exports.attach = (server, createClient, options) ->
p "listener doc:#{docName} opdata:#{i opData} v:#{version}"

# Skip the op if this socket sent it.
return if opData.meta?.source == client.id
return if opData.meta?.source == client.sessionId

opMsg =
doc: docName
Expand Down

0 comments on commit 53bc389

Please sign in to comment.