 
   # @private
   addSocket : (id, userName) ->
-    @redis.hset @makeKeyName('instance', @instanceUID, 'sockets'), id, userName
+    @redis.hset @makeKeyName('instances', @instanceUID, 'sockets'), id, userName
 
   # @private
   removeSocket : (id) ->
-    @redis.hdel @makeKeyName('instance', @instanceUID, 'sockets'), id
+    @redis.hdel @makeKeyName('instances', @instanceUID, 'sockets'), id
 
   # @private
   getOrAddUser : (name, state) ->

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


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

