Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjb/serverless-webrtc
A demo of using WebRTC with no signaling server.
https://github.com/cjb/serverless-webrtc
Last synced: about 4 hours ago
JSON representation
A demo of using WebRTC with no signaling server.
- Host: GitHub
- URL: https://github.com/cjb/serverless-webrtc
- Owner: cjb
- License: other
- Created: 2013-05-06T01:49:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T23:31:09.000Z (over 3 years ago)
- Last Synced: 2024-12-06T22:09:40.356Z (7 days ago)
- Language: JavaScript
- Homepage:
- Size: 515 KB
- Stars: 1,547
- Watchers: 79
- Forks: 239
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - serverless-webrtc
- awesome-peer-to-peer - serverless-webrtc
README
serverless-webrtc
=================This is a tech demo of using WebRTC without a signaling server -- the
WebRTC offer/answer exchange is performed manually by the users, for example
via IM. This means that the app can run out of `file:///` directly, without
involving a web server. You can send text messages and files between peers.This repository contains two different clients that can talk to each other:
1. `serverless-webrtc.js` runs under node.js
2. `serverless-webrtc.html` runs in Chrome or FirefoxChat is fully interoperable between all of the above (Node, Chrome, Firefox)
in any combination (tested with Chrome 35 and Firefox 29).![screenshot](https://raw.github.com/cjb/serverless-webrtc/master/serverless-webrtc.png)
### For Node:
```
λ npm install serverless-webrtc
λ node_modules/serverless-webrtc/serverless-webrtc.js
```Under Node, if you want to create a session instead of joining one:
```
λ node_modules/serverless-webrtc/serverless-webrtc.js --create
```### For browsers:
In Chrome (but not Firefox), you'll need to run a local web server rather
than just browsing to `file:///`, like this:```
λ cd serverless-webrtc
λ python -m SimpleHTTPServer 8001 .
Serving HTTP on 0.0.0.0 port 8001 ...
```and then browse to [http://localhost:8001/](http://localhost:8001/).
### For Android:
[Vojtěch Sázel](https://www.linkedin.com/in/vojtechsazel) has ported this project
to Android: [serverless-webrtc-android](https://github.com/wojta/serverless-webrtc-android).#### Blog posts with more details:
http://blog.printf.net/articles/2013/05/17/webrtc-without-a-signaling-server
http://blog.printf.net/articles/2014/07/01/serverless-webrtc-continued
#### Browser demo link:
https://cjb.github.io/serverless-webrtc/serverless-webrtc.html
-- Chris Ball (http://printf.net/)