socket.io : fix for functions used in storing data associated with client. Closes #734