dn
discovery-network
npm i discovery-network
dn

discovery-network

A peer to peer discovery network

by Jake Verbaten

0.6.1 (see all)TypeScript:Not Found
npm i discovery-network
Readme

discovery-network

A peer to peer discovery network in the cloud

Example

See webrtc-stream for more detailed example

var conn = Connection()

// identify yourself to discovery network connection
conn.identify(userObject)

// open peer & webrtc networks
var peerNetwork = PeerNetwork(conn)
    , webrtcNetwork = WebRTCNetwork(conn)

// when you detect a new peer joining, open a PC to them
peerNetwork.on("peer", handlePeer)

// incoming offer from another peer
webrtcNetwork.on("offer", handleOffer)

// incoming answers from another peer
webrtcNetwork.on("answer", handleAnswer)

// incoming candidates from another peer
webrtcNetwork.on("candidate", handleCandidate)

Installation

npm install discovery-network

Contributors

  • Raynos

MIT Licenced

Downloads/wk

10

GitHub Stars

30

LAST COMMIT

10yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.6.1
latest
10yrs ago
No alternatives found
No tutorials found
Add a tutorial