GithubHelp home page GithubHelp logo

popkinj / webrtc Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 56 KB

Encrypted Peer 2 Peer Data Connection without a Signalling Server

JavaScript 8.49% HTML 31.33% Svelte 60.18%
browser data-transfer encrpytion javascript p2p webrtc

webrtc's Introduction

Serverless Peer to Peer Encrypted Connection

Description

Proove you can create a Peer to Peer connection without a signaling server.

Normally a signaling server is used to exchange connection information between two peers. Commonly done through a websocket. This project is proof of concept to create a peer to peer connection without a signaling server.

Currently there is a STUN server used to calculate the public internet address. If the peers are on the same network, the STUN server is not needed.

This project uses the WebRTC javascript implementation supported by most modern browsers. If you want to create a peer to peer connection without the use of a helper library then this may be a good place to start.

Developement Environment

git clone [email protected]/popkinj/webrtc.git
cd webrtc
npm ci
npm run dev

Current Workflow

  1. Open two browser windows to the testing server.
  1. Create and pass the connection information between page 1 and page 2.
  2. When a data connection is established, test sending messages between the two pages. Currently all messages are sent to the console.

Future Workflow

  1. Instigator creates a QR-Code which contains a link to the testing server. The url will contain all the connection information of the Instigator.
  2. The responder scans the QR-Code and opens the link in the browser.
  3. The responder stores the connection information into Peer object.
  4. The instigator gets the signal through webrtc that the responder is ready to connect.
  5. The instigator's camera is turned on ready to scan the responders QR-Code.
  6. The responder creates a QR-Code which contains a link to the testing server. The url will contain all the connection information of the Responder.
  7. The instigator scans the QR-Code of the responder and saves the connection information into a Peer object.

webrtc's People

Contributors

popkinj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.