Description
Netflux is an isomorphic JavaScript transport API for peer-to-peer messaging that runs on both clients and servers. It builds a secure, fault-tolerant full mesh network of peers using RTCDataChannel and WebSocket, and you send String or Uint8Array data either privately to one peer or as a broadcast. The same API works in browsers such as Chrome and Firefox and in NodeJS servers. The README says it rejoins the group when a connection is lost, can send data larger than the roughly 16 kB limit of RTCDataChannel, and hides whether a given connection uses WebSocket or RTCDataChannel. All connections are encrypted. The signaling server is only used to set up connections between two peers and never carries user data. You can deploy your own signaling server, called Sigver, or use the default one, and you can configure STUN and TURN servers. The package includes several bundles for NodeJS and browsers, and TypeScript declaration files.…
Highlights
- Full mesh peer-to-peer network
- Same API in browsers and NodeJS
- Private and broadcast messages
- Your own signaling server (Sigver) supported
- TypeScript declaration files included
Ratings & Reviews
No ratings yet
Be the first to rate Netflux.
People also visit
Node Datachannel
WebRTC For Node.js and Electron (including WebSocket Client & Server)
Netflux FAQ
What is Netflux?
A JavaScript transport API for peer-to-peer messaging, for both browsers and NodeJS servers.
Is user data sent through the signaling server?
No. The README says signaling is only used to establish connections between peers.
Can I run my own signaling server?
Yes. You can deploy Sigver, or use the default signaling server. STUN and TURN servers can also be configured.
Does it reconnect after a drop?
Yes. The README says it automatically rejoins the group when a connection is lost.
Does it include types?
Yes. TypeScript declaration files are included.
What are the best Netflux alternatives?
Popular alternatives to Netflux include AnyCable, SendFiles and deepstream.io. See all Netflux alternatives
