Transport-agnostic client for HTTP and WebSocket communication with a fluent builder API. Version 2.0.2, actively developed. Supports fetch and WebSocket transports, typed request/response data, lifecycle events (message, error, abort, settled), timeouts, content-type based parsing, and explicit payload type selection. Differentiates by offering a unified builder pattern for multiple transports and lifecycle hooks.
npm install bridgewireNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Builds a GET fetch transport with typed query parameters and response, subscribes to messages, and sends a request.
Use `import getBridgeWireBuilder from 'bridgewire'` (default export) for v2+; older versions may have different export.
Ensure bundler is configured to handle side-effect-free enums or import only needed values.
Do not call .withMethod() or .withHeader() when using TransportType.WEBSOCKET.
Run `npm install bridgewire` and ensure tsconfig 'esModuleInterop' and 'moduleResolution' are set (e.g., bundler or node16).
Replace `const bridgewire = require('bridgewire')` with `import getBridgeWireBuilder from 'bridgewire'`.Ensure you call getBridgeWireBuilder() first, then chain builder methods, and call .build() last.
No dependency data recorded yet.