mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
subscribe to participant change events in status bar view
This commit is contained in:
@@ -14,11 +14,10 @@ class HostStatusBar extends View
|
||||
else
|
||||
@session.start()
|
||||
|
||||
@session.on 'listening started stopped', @update
|
||||
@session.on 'listening started stopped participant-entered participant-exited', @update
|
||||
@update()
|
||||
|
||||
update: =>
|
||||
console.log 'updating', this
|
||||
if @session.isListening()
|
||||
@status.addClass('running')
|
||||
@connections.show().text(@session.participants.length)
|
||||
|
||||
Reference in New Issue
Block a user