respoke / peer-to-peer-fileshare

Example of sharing files peer-to-peer in a web browser using Respoke

Home Page:https://ruffrey-p2p-fileshare.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peer-to-Peer file sharing over Respoke DirectConnection (RTCDataChannel)

Requirements

  • node.js 0.12+ and npm
  • nodemon: npm install -g nodemon
  • Respoke app ID, app secret, and role ID added to ./config/

Running it

git clone https://github.com/respoke/peer-to-peer-fileshare
cd peer-to-peer-fileshare
npm install
npm start

Go to http://localhost:3000

File transfer example code

The file views/room.jade shows how the file transfer is performed.

About

Example of sharing files peer-to-peer in a web browser using Respoke

https://ruffrey-p2p-fileshare.herokuapp.com

License:MIT License


Languages

Language:HTML 90.3%Language:JavaScript 9.7%