An open API service indexing awesome lists of open source software.

https://github.com/respoke/peer-to-peer-fileshare

Example of sharing files peer-to-peer in a web browser using Respoke
https://github.com/respoke/peer-to-peer-fileshare

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

## Requirements

- node.js 0.12+ and npm
- nodemon: `npm install -g nodemon`
- [Respoke](https://portal.respoke.io) app ID, app secret, and role ID added to `./config/`

## Running it

```bash
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](views/room.jade) shows how the file transfer is performed.