New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@brainstack/bridge-client

Package Overview
Dependencies
Maintainers
0
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brainstack/bridge-client

Brainstack Bridge Client

  • 2.0.105
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

DEPRECATED

Replaced by @brainstack/client-web @brainstack/client-node

They share the same interface contract with different dependencies.
It's a clear separation of concerns now.

Bridge Client Module

Will connect to a bridge server and forward all local bridge event to it.

Parameters

options: BridgeClientOption (optional) - Optional configuration options for the bridge client. options.logger: Logger (optional) - Optional logger instance to use for logging. options.hub: EventHub (optional) - Optional event hub instance to use for communication. options.ws_client: WebSocket (optional) - Optional WebSocket instance to use for the client connection.

Returns

BridgeClient - An instance of the bridge client.

Throws

Will throw an error if the bridge client is already connected.

Example Usage

const bridgeClient = createBridgeClient();

bridgeClient.connect({ host: "localhost", port: 3000 });

Functions

connect: Connects the bridge client to the provided destination. close: Closes the bridge client connection. logger: The logger instance used for logging. hub: The event hub instance used for communication.

FAQs

Package last updated on 09 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc