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

Data channel example

Example

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

This simple project demonstrates how to setup WebRTC connection using peer-data with data channel.

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

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

Then open http://localhost:3000/.

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