 
     @registerSingleton 'monitorController', @, no
 
+
+  # SUBSCRIBE TO JOIN/LEAVE EVENTS
 
   monitorPresence:->
     @monitorHandler =

      if serviceData
        services.push serviceData
        if @offlineServices.indexOf(key) isnt -1 or serviceData.count
          @emit 'ServiceWentOnline', key, serviceData
          for service,i in @offlineServices
            @offlineServices.splice(i,1) if service is key
      else

      'kite-databases'
      'kite-sharedHosting'
      'koding-social-*'
    ]

    @serviceToMethod =
      'kite-applications' : 'appKite'
      'kite-webterm'      : 'webtermKite'
      'kite-databases'    : 'databaseKite'
      'kite-sharedHosting': 'sharedHostingKite'
      'koding-social-*'   : 'socialWorker'

    @monitorData = {}
    @offlineServices = []
