Found sort of a solution - use RegisteredHandler's create event to subscribe to the room's event. The changes can be found here. I wanna make an important note here: Creating an async main method in index.ts and awaiting gameServer.register was crucial.