mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Assign clientId to Session from its channel
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user