Callback on entering Networked Room

What’s the correct way to execute code on initial room connection? Basically what’s the equivalent of ws.addEventListeneter(, () => {} ); line in the websocket quickstart guide?GitHub - jjxxs/websocket-ts: A WebSocket for browsers with optional auto-reconnect and message buffering written in TypeScript.

Original Post on Discord

by user 165409711020179457

this.context.connection.beginListen(RoomEvents.JoinedRoom, <cb>)

thank you! Was almost there :sweat_smile:

by user 165409711020179457

adding more info to the docs here: Networking | Needle Engine Documentation
and to the code itself