Logic for relaying messages and name/room changes to the server