How to use callback functions with events in VmonsterRoom.
on()
method, remember that only one listener can be attached per event type.
If a new callback is registered for the same event, it will replace the
previous listener.on()
method is used to attach an event listener to a Event.
event | callback function type |
---|---|
joined | () ⇒ void |
joining | () ⇒ void |
left | () ⇒ void |
aiavatar-start-speaking | () ⇒ void |
aiavatar-message | (message: string) ⇒ void |
aiavatar-stop-speaking | () ⇒ void |
stt-data | (sttData: STTData) ⇒ void |
stt-error | (error: any) ⇒ void |