Socket
Book a DemoInstallSign in
Socket

configurapi-runner-ws

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configurapi-runner-ws

Websocket runner for configurapi.

latest
Source
npmnpm
Version
1.10.0
Version published
Maintainers
1
Created
Source

configurapi-runner-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.
  • 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.

Keywords

configurapi

FAQs

Package last updated on 27 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