HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - OutboundStreamEvents

Home > @rainway/native > OutboundStreamEvents

OutboundStreamEvents interface

Events emitted by OutboundStream

Signature:

export interface OutboundStreamEvents 

Properties

PropertyTypeDescription
"peer-join"(ev: PeerJoinEvent) => EventReturnTypeRaised when a peer joins the stream.
"peer-leave"(ev: PeerLeaveEvent) => EventReturnTypeRaised when a peer leaves the stream.
close(ev: CloseEvent) => EventReturnTypeRaised when the channel has been closed.
input(ev: InputEvent) => EventReturnTypeRaised 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.