 
   ###*
    * Transforms given publisher instance from OpenTok into our own
-   * `ParticipantType.Publishe` class instance and it registers it into model's
+   * `ParticipantType.Publisher` class instance and it registers it into model's
    * participant property.. It sets the model's stream instance to publisher's
    * stream for easy access.
    *

  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) =>

  setState: (state) -> @state = _.assign {}, @state, state


