networkManager .connect(this.roomId, customJoinData, { host:this.serverHost, port:this.serverPort, secure:this.secure, audio:this.audio, audioDeviceId:this.inputDeviceId, debug:this.debug, path:this.serverPath, }) .then((serverJoinEvent) => { ...//register the returned transforms from the server }).catch((err)=>{ ...// do error handling }); }
The data property of a JoinEvent instance received on the server in the onUserJoin event handler is equal to the
customJoinData provided on the initial client to server connection
Event for when a user joined.
When initially connecting, the transforms are empty. Set custom join data to help us initialize the transforms.
Example:
The below code is run when connecting from the network-configuration-component.ts used in the client code:
The data property of a JoinEvent instance received on the server in the onUserJoin event handler is equal to the customJoinData provided on the initial client to server connection