Socket
Book a DemoInstallSign in
Socket

configurapi-runner-lambda-ws

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configurapi-runner-lambda-ws

A websocket+lambda runner for configurapi.

latest
Source
npmnpm
Version
1.9.0
Version published
Weekly downloads
22
2100%
Maintainers
1
Weekly downloads
 
Created
Source

configurapi-runner-lambda-ws

  • Use Event for an incoming data.
  • User Response for a regular response data.
  • Use StreamResponse from configurapi-handler-ws for a stream response.
    • With a stream response, data will be delivered from the server in chunks.
      • A check will have x-stream: chunk header.
      • The last chunk will have x-stream: done header.
      • Check x-stream-id: $id header for the stream ID. A chunk belonging to the same stream will have the same stream ID.
  • connectionId is available at event.request.headers.connectionId
  • on_connect and on_disconnect will be called when a new connection is made or closed.
  • For AWS API Gateway Websocket SAM's template, set WebSocketApi.Properties.RouteSelectionExpression to $request.body.name, so event.name will be used for configurapi's route name.
  • Use Request.headers['push-function'] to send an out-of-band message. The function is async and accepts an object to send back to the caller.
  • Use on_connect to perform authorization.
  • Sec-WebSocket-Protocol is automatically returned for on_connect events.

FAQs

Package last updated on 28 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts