Add handleMessageBroadcasting, handleRoomJoining, handleClientDisconnection functions.