Socket
Socket
Sign inDemoInstall

@libp2p/webrtc-star-signalling-server

Package Overview
Dependencies
251
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @libp2p/webrtc-star-signalling-server

signalling server to use with the libp2p WebRTC transport


Version published
Weekly downloads
122
decreased by-73.71%
Maintainers
6
Install size
13.2 MB
Created
Weekly downloads
 

Readme

Source

@libp2p/webrtc-star-signalling-server

libp2p.io Discuss codecov CI

signalling server to use with the libp2p WebRTC transport

Table of contents

Install

$ npm i @libp2p/webrtc-star-signalling-server

Description

Nodes using the libp2p-webrtc-star transport will connect to a known point in the network, a rendezvous point where they can learn about other nodes (Discovery) and exchange their SDP offers (signalling data).

Usage

To start a server run:

$ webrtc-star --port=13579 --host=127.0.0.1

Defaults:

  • port - 9090
  • host - '0.0.0.0'

Or in JavaScript:

import { sigServer } from '@libp2p/webrtc-star-signalling-server'

const server = await sigServer({
  port: 24642,
  host: '0.0.0.0',
  metrics: false
})

// some time later
await server.stop()

Hosted Rendezvous Server

We host signaling servers at wrtc-star1.par.dwebops.pub and wrtc-star2.sjc.dwebops.pub, that can be used for practical demos and experimentation, it should not be used for apps in production. Check Deployment.md for how to deploy your own server.

A libp2p-webrtc-star address, using the signalling server we provide, looks like:

/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star/p2p/<your-peer-id>

Note: The address above indicates WebSockets Secure, which can be accessed from both http and https.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Keywords

FAQs

Last updated on 24 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc