adding the socket stuff to make chatrooms work