Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
Use an updated fork of electron-webrtc. Fixes KordonBleu/jumpsuit#2
Browse files Browse the repository at this point in the history
  • Loading branch information
getkey committed Feb 26, 2017
1 parent 8e02928 commit 3a23485
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enslavism",
"version": "0.7.0",
"version": "0.8.0",
"description": "Framework to manage distributed WebRTC servers that communicate with browser clients",
"main": "bundle.js",
"repository": {
Expand All @@ -23,7 +23,7 @@
"game"
],
"dependencies": {
"electron-webrtc": "0.2.x",
"electron-webrtc-patched": "0.3.x",
"ws": "1.x",
"ipaddr.js": "1.x",
"cookie": "0.x",
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ $ node example/master.js
$ node example/slave.js # in a different terminal
```

Enslavism depends [on](https://github.com/mappum/electron-webrtc/pull/91) [patches](https://github.com/mappum/electron-webrtc/pull/92) that aren't yet merged into [electron-webrtc](https://github.com/mappum/electron-webrtc).

Now open your browser at `http://localhost:8081/`.


Expand Down
2 changes: 1 addition & 1 deletion server/client_connection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as proto from '../shared/proto.js';

const EventEmitter = require('events'),
webrtc = require('electron-webrtc')();
webrtc = require('electron-webrtc-patched')();

export default class ClientConnection extends EventEmitter {
constructor(id, sdp, slave) {
Expand Down
2 changes: 1 addition & 1 deletion server/slave.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as convert from './convert.js';
import ClientConnection from './client_connection.js';

const EventEmitter = require('events'),
webrtc = require('electron-webrtc')(),
webrtc = require('electron-webrtc-patched')(),
WebSocket = require('ws'),
cookie = require('cookie');

Expand Down

0 comments on commit 3a23485

Please sign in to comment.