#Callback on entering Networked Room

1 messages · Page 1 of 1 (latest)

placid swallow
#

What's the correct way to execute code on initial room connection? Basically what's the equivalent of ws.addEventListeneter(WebsocketEvent.open, () => {} ); line in the websocket quickstart guide?https://github.com/jjxxs/websocket-ts

GitHub

A WebSocket for browsers with optional auto-reconnect and message buffering written in TypeScript. - GitHub - jjxxs/websocket-ts: A WebSocket for browsers with optional auto-reconnect and message b...

latent haven
#

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

placid swallow
#

thank you! Was almost there 😅