Skip to content

Commit eb35f0c

Browse files
authored
Merge pull request #1 from tommytee/master
packages updated, updated for simple-peer
2 parents 858bc46 + a4a4b0c commit eb35f0c

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Socketiop2p.prototype.setupPeerEvents = function (peer) {
151151

152152
peer.on('data', function (data) {
153153
if (this.destroyed) return
154-
self.decoder.add(data)
154+
self.decoder.add(JSON.parse(data))
155155
})
156156

157157
peer.on('stream', function (stream) {
@@ -222,7 +222,7 @@ Socketiop2p.prototype._send = function (data) {
222222
for (var peerId in self._peers) {
223223
var peer = self._peers[peerId]
224224
if (peer._channelReady) {
225-
peer.send(data)
225+
peer.send(JSON.stringify(data))
226226
}
227227
}
228228
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@
2222
],
2323
"dependencies": {
2424
"component-bind": "^1.0.0",
25-
"component-emitter": "^1.2.0",
26-
"debug": "^2.1.0",
27-
"extend.js": "0.0.1",
28-
"has-binary": "^0.1.5",
29-
"hat": "0.0.3",
30-
"simple-peer": "~5.11.8",
25+
"component-emitter": "^1.2.1",
26+
"debug": "^2.6.3",
27+
"extend.js": "0.0.2",
28+
"has-binary": "0.1.7",
29+
"hat": "^0.0.3",
30+
"simple-peer": "^7.0.0",
3131
"socket.io-p2p-parser": "tomcartwrightuk/socket.io-p2p-parser",
3232
"to-array": "^0.1.4",
33-
"webrtcsupport": "^2.1.2"
33+
"webrtcsupport": "^2.2.0"
3434
},
3535
"devDependencies": {
36-
"concat-stream": "^1.5.1",
37-
"ecstatic": "^0.8.0",
36+
"concat-stream": "^1.6.0",
37+
"ecstatic": "0.8.0",
3838
"envify": "^3.4.0",
3939
"expect": "^1.1.0",
4040
"expect.js": "^0.3.1",
4141
"inherits": "~2.0.1",
4242
"simple-get": "^1.4.3",
43-
"socket.io": "^1.3.5",
44-
"socket.io-client": "^1.3.5",
45-
"socket.io-p2p-server": "^1.1.0",
46-
"standard": "^5.4.1",
47-
"tape": "~3.0.0",
48-
"xhr": "^2.2.0",
49-
"zuul": "~3.8.0"
43+
"socket.io": "^1.7.3",
44+
"socket.io-client": "^1.7.3",
45+
"socket.io-p2p-server": "^1.2.0",
46+
"standard": "^10.0.0",
47+
"tape": "^4.6.3",
48+
"xhr": "^2.4.0",
49+
"zuul": "^3.11.1"
5050
},
5151
"scripts": {
5252
"test": "./node_modules/standard/bin/cmd.js && node tasks/fetch_ice.js && ./node_modules/zuul/bin/zuul -- test/specs/*.js",

0 commit comments

Comments
 (0)