registering chat server to client