Assign clientId to Session from its channel

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-07-25 11:50:29 -06:00
parent b9e23b96eb
commit a4e1d84ebb

View File

@@ -8,8 +8,9 @@ class Session
_.extend @prototype, require('event-emitter')
subscribe: (channelName) ->
console.log "subscribing", channelName
new WsChannel(channelName)
channel = new WsChannel(channelName)
{@clientId} = channel
channel
connectDocument: (doc, channel) ->
doc.on 'replicate-change', (event) ->