peer-data

peer-data

  • Docs
  • Help
  • GitHub

›Examples

Quick Start

  • Installation
  • Basic Example
  • Signaling Server

Connection

  • Data Channel
  • Media Stream

Examples

  • Error Handling
  • Local connection
  • Socket signalling channel
  • Data channel example

Local connection

Example

In the repository root directory you can find some simple examples. Click here for local connection example.

This simple project demonstrates how to setup WebRTC connection using peer-data and custom signalling channel instead of builtin SocketChannel.

To run this example simple clone the repository and perform the following from the root directory:

➜  examples git:(master) ✗ cd local-connection
➜  local-connection git:(master) ✗ yarn
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.13s.
➜  local-connection git:(master) ✗ yarn start
$ node server.js
Server started at port 3000

Then open http://localhost:3000/.

← Error HandlingSocket signalling channel →
  • Example
peer-data
Docs
Documentation
Community
Support
More
rafallorenz.comGitHubStar
Copyright © 2022 Rafał Lorenz