Home > @rainway/native > OutboundStreamEvents
OutboundStreamEvents interface
Events emitted by OutboundStream
Signature:
export interface OutboundStreamEvents
Properties
Property | Type | Description |
---|---|---|
"peer-join" | (ev: PeerJoinEvent) => EventReturnType | Raised when a peer joins the stream. |
"peer-leave" | (ev: PeerLeaveEvent) => EventReturnType | Raised when a peer leaves the stream. |
close | (ev: CloseEvent) => EventReturnType | Raised when the channel has been closed. |
input | (ev: InputEvent) => EventReturnType | Raised when an input (keyboard, mouse, gamepad...) is received from a remote device, before we've processed the input. Only input attempts enabled by the stream's InputLevel cause these events.You can listen to this event and call preventDefault on the event to cancel input processing. |