ProtectedconstructorCreate an Adapter.
The blueprint to create the adapter.
Protected ReadonlyblueprintProtected ReadonlyhooksProtected ReadonlymiddlewareProtected ReadonlyresolvedProtectedbuildBuild the raw response.
The event context.
OptionaleventHandler: AdapterEventHandlerType<IncomingEvent, OutgoingResponse>
The event handler to be run.
The raw response wrapper.
ProtecteddispatchNormalize a socket event into an IncomingEvent and route it through the kernel.
The Lambda execution context.
The connection.
The routing key (a lifecycle key or event:<channel>:<event>).
Optionalpayload: unknown
The payload carried to the handler.
The raw response.
ProtectedeventRoute one API Gateway WebSocket event by its lifecycle type.
The raw event.
The Lambda execution context.
The raw response (an ack for API Gateway).
ProtectedexecuteExecute the event handler lifecycle hooks.
The hook to execute.
The event handler to be run.
ProtectedexecuteExecute adapter lifecycle hooks.
The hook's name.
Optionalcontext: ApiGatewayWsAdapterContext
The event context.
Optionalerror: any
The error to handle.
ProtectedhandleHandle error.
The error to handle.
The event context.
The raw response.
ProtectedhandleHandle the event.
The event context.
The event handler to be run.
The raw response wrapper.
ProtectedhandleHandle a MESSAGE event: control frames update presence; every frame is routed through the kernel.
The raw event.
The Lambda execution context.
The connection.
The raw response.
ProtectedmakeCreate pipeline options for the Adapter.
The pipeline options for transforming the event.
ProtectedonProtectedresolveGet the error handler for the given error.
The error to get the handler for.
The error handler.
ProtectedresolveInitialize and return the Lambda handler API Gateway invokes.
The handler.
ProtectedsendSend the raw event through the destination.
The event context.
The event handler to be run.
Platform-specific response.
ProtectedstoreThe shared connection store the broadcaster reads, if realtime is enabled.
The store, or undefined.
ProtectedusePoint the broadcaster at this event's management endpoint (when it supports it).
The raw event.
ProtectedvalidateValidate the context and event handler.
The context to validate.
The event handler to validate.
StaticcreateCreate an ApiGatewayWsAdapter.
The application blueprint.
A new instance.
AWS API Gateway WebSocket adapter for Stone.js.
API Gateway invokes a fresh Lambda per socket event, so this adapter maps
requestContext.eventType(CONNECT/DISCONNECT/MESSAGE) into a keyedIncomingEventand runs it through the kernel, where the light key-router from@stone-js/routerroutes it to the matching@On*gateway method, the same pattern as every adapter. It maintains the shared connection store (DynamoDB in production); replies to clients go through the API Gateway Management API (see ApiGatewayWsBroadcaster), the management endpoint taken from each event.