HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - InputEvent\_2

Home > @rainway/native > InputEvent_2

InputEvent_2 class

An event that occurs when input arrives for a given OutboundStream. Can be used to prevent input event processing, preventing the host from handling the input.

Signature:

export declare class InputEvent extends BaseEvent<InputBody> 

Extends: BaseEvent<InputBody>

Constructors

ConstructorModifiersDescription
(constructor)(native)Constructs a new instance of the InputEvent class

Properties

PropertyModifiersTypeDescription
defaultPreventedbooleanFlag indicating if the input event has been prevented, in which case it will be ignored by the host.
idBigIntThe ID of the peer emitting the input.

Methods

MethodModifiersDescription
preventDefault()Prevents the input event from being processed by the host.