   getNextServiceName:(serviceType)->
     count = @counts[serviceType] ?= 0
     servicesOfType = @services[serviceType]
+    return  unless servicesOfType
     serviceName = servicesOfType[count % servicesOfType.length - 1]
     @counts[serviceType] += 1
     return serviceName

      }

  cleanUpAfterDisconnect:(socketId)->
    @getClients(socketId).forEach @bound 'cleanUpClient'

    # TODO: implement cleanup



  joinClient:(data, socketId)->
    {channel, routingKey, serviceType} = data
    # @addRoutingKeyBySocketId socketId, routingKey
    switch serviceType
      when 'bongo' then @joinBongoClient data, routingKey, socketId
      when 'kite'  then @joinKiteClient data, routingKey, socketId
