changed id to be socket not socket.id