HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - BaseRequestEvent

Home > @rainway/native > BaseRequestEvent

BaseRequestEvent class

The base request event type.

Signature:

export declare abstract class BaseRequestEvent<TAcceptedOptions, TAccepted> 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the BaseRequestEvent class.

Properties

PropertyModifiersTypeDescription
onAccepted?(value: TAccepted) => void(Optional) Invoked when the request is accepted.
onRejected?(reason?: string) => void(Optional) Invoked when the request is rejected

Methods

MethodModifiersDescription
accept(options)Accept the request, returning the accepted object.
acceptInternal(options)Internal implementation of accepting.
reject(reason)Reject the request, with an optional reason.
rejectInternal(reason)Internal implementation of rejecting