 
   rateLimit: (id, type, callback=->) =>
     throttle = @throttles[type] ? @throttles.query
+
     callback() unless throttle?
     throttle.rateLimit id, (error, isLimited) =>
       debug 'rateLimit', id, type, isLimited
+
       return callback error if error?
       return callback new Error('request exceeds rate limit') if isLimited
       callback()

          @authedDevice = authedDevice

          @emit type, data

  # message handlers
  device: (data) =>

  onSocketData: (data) =>
    @sendFrame 'data', data



module.exports = MeshbluWebsocketHandler
