From 3a23485ad6a89c5eb69f5610d9d51bfa422ce6e8 Mon Sep 17 00:00:00 2001 From: Getkey Date: Sun, 26 Feb 2017 11:11:31 +0100 Subject: [PATCH] Use an updated fork of electron-webrtc. Fixes KordonBleu/jumpsuit#2 --- package.json | 4 ++-- readme.md | 2 -- server/client_connection.js | 2 +- server/slave.js | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a4fc104..9f443ac 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", diff --git a/readme.md b/readme.md index b309c19..4bbe47f 100644 --- a/readme.md +++ b/readme.md @@ -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/`. diff --git a/server/client_connection.js b/server/client_connection.js index c9ab2c6..04576a1 100644 --- a/server/client_connection.js +++ b/server/client_connection.js @@ -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) { diff --git a/server/slave.js b/server/slave.js index f346e5a..46c30d8 100644 --- a/server/slave.js +++ b/server/slave.js @@ -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');