Skip to content
B

Bidc

Bidirectional Channels for JavaScript

by vercelFree

#355in Social
0In stores

Description

BIDC is a JavaScript library for bidirectional channels, which let code in one context talk to code in another, such as a page and an iframe…

Highlights

  • Asynchronous communication across iframes, workers and service workers
  • Automatic handshake with collision handling
  • Buffers messages until the other side is ready
  • Sends Dates, Maps, Sets, ArrayBuffers and Promises
  • TypeScript types for RPC-style calls

Ratings & Reviews

No ratings yet

Be the first to rate Bidc.

People also visit

B

Broadcast Channel

BroadcastChannel to send data between different browser-tabs or…

Social
Launch
S

Sysend

Web application synchronization between different tabs

Productivity
Launch
R

RPC Anywhere

Create a type-safe RPC anywhere

Utilities
Launch
X

Xmpp.js

XMPP for JavaScript

Social
Launch
N

Node Datachannel

WebRTC For Node.js and Electron (including WebSocket Client & Server)

Utilities
Launch
J

JS Libp2p

A JavaScript Implementation of libp2p networking stack

Utilities
Launch

Bidc FAQ

What is BIDC?

A bidirectional channel library for asynchronous communication between JavaScript contexts such as workers, iframes and service workers.

How is it different from postMessage?

It handles the connection, reconnects after a reload, buffers messages until the other side is ready, and supports Promises and complex data types.

What data types can it send?

Strings, numbers, booleans, bigints, null, undefined, Dates, RegExp, ArrayBuffers, typed arrays, Maps, Sets, objects and arrays, plus Promises and async functions.

Which side needs to start first?

Neither. The README says the channel is established no matter which side initiates.

Does it work with TypeScript?

Yes. Types are inferred for the RPC-style method calls.

Is it open source?

Yes. The source is on GitHub under the vercel organization.

What are the best Bidc alternatives?

Popular alternatives to Bidc include Broadcast Channel, Xmpp.js and Webapp. See all Bidc alternatives

Developer Stuff

Badges