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

  bindSessionEvents: (session) ->

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

      @subscribeToStream session, event.stream

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

      { connection, name } = event.stream

      # Emit necessary events for that participant
      @setParticipantLeft connection.connectionId

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


    @registerPublisher publisher
    @setState { publishing: on }
    @setActive()

    @changeActiveParticipant getNick()


