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

Socket signalling channel

Example

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

This simple project demonstrates how to setup WebRTC connection using peer-data and socket signalling channel.

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

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

Then open http://localhost:3000/.

← Local connectionData channel example →
  • Example
peer-data
Docs
Documentation
Community
Support
More
rafallorenz.comGitHubStar
Copyright © 2022 Rafał Lorenz