 local sockets = KEYS[2]
 local prefix = ARGV[1]
 local socketid = ARGV[2]
+
 local rooms = redis.call('SMEMBERS', id)
+redis.call('DEL', id)
 
 redis.call('SREM', sockets, socketid)
 local nconnected = redis.call('SCARD', sockets)

  # @private
  constructor : (@server, @userName) ->
    @name = @userName
    @prefix = 'user'
    @exitsErrorName = 'userExists'
    @redis = @server.redis



  # @private
  hasUser : (name) ->
    @redis.get @makeKeyName('users', name, 'isInit')

  # @private
  close : ->
