   setState: (state) -> @state = _.assign {}, @state, state
 
 
-  getSubscribersCount: -> (Object.keys @subscribers).length
-
-


    @registerPublisher publisher
    @setState { publishing: on }

    @setActive()
    @changeActiveParticipant getNick()



  bindSessionEvents: (session) ->

    session.on 'streamCreated', (event) =>
      @subscribeToStream session, event.stream

    session.on 'streamDestroyed', (event) =>
      { connection } = event.stream
      @setParticipantLeft connection.connectionId

    session.on 'connectionCreated', (event) =>
