bittorrent-relay
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -516,3 +516,3 @@ import Debug from 'debug' | ||
socket.off('error', socket.onError) | ||
socket.off('data', socket.onData) | ||
socket.off('message', socket.onMessage) | ||
socket.off('close', socket.onClose) | ||
@@ -528,3 +528,3 @@ } | ||
} | ||
socket.onData = function(data, buffer){ | ||
socket.onMessage = function(data, buffer){ | ||
const message = buffer ? JSON.parse(Buffer.from(data).toString('utf-8')) : JSON.parse(data) | ||
@@ -640,3 +640,3 @@ if(message.action === 'session'){ | ||
socket.on('error', socket.onError) | ||
socket.on('data', socket.onData) | ||
socket.on('message', socket.onMessage) | ||
socket.on('close', socket.onClose) | ||
@@ -643,0 +643,0 @@ } |
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
47646