 
 
   cleanupCollaboration: (options = {}) ->
-    return warn 'RealtimeManager is not set'  unless @rtm
 
     kd.utils.killRepeat @pingInterval
     @rtm?.dispose()


  handleParticipantAction: (actionType, changeData) ->

    return  unless @rtm

    kd.utils.wait 2000, => @whenRealtimeReady =>

      switch actionType
        when 'join' then @onRealtimeParticipantJoined changeData

    {setMachineUser} = envHelpers

    setMachineUser @mountedMachine, usernames, share, (err) =>
      return callback err  if err

      @broadcastMessage
        type: "#{if share then 'Set' else 'Unset'}MachineUser"
        participants: usernames

      callback null

