mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
fix: reference error
This commit is contained in:
parent
5379416bb2
commit
bd92a827e1
@ -303,13 +303,13 @@ Server.prototype.onWebSocketConnection = function (socket, opts) {
|
|||||||
socket.onSend = self._onWebSocketSend.bind(self, socket)
|
socket.onSend = self._onWebSocketSend.bind(self, socket)
|
||||||
|
|
||||||
socket.onMessageBound = self._onWebSocketRequest.bind(self, socket, opts)
|
socket.onMessageBound = self._onWebSocketRequest.bind(self, socket, opts)
|
||||||
socket.on('message', self.onMessageBound)
|
socket.on('message', socket.onMessageBound)
|
||||||
|
|
||||||
socket.onErrorBound = self._onWebSocketError.bind(self, socket)
|
socket.onErrorBound = self._onWebSocketError.bind(self, socket)
|
||||||
socket.on('error', self.onErrorBound)
|
socket.on('error', socket.onErrorBound)
|
||||||
|
|
||||||
socket.onCloseBound = self._onWebSocketClose.bind(self, socket)
|
socket.onCloseBound = self._onWebSocketClose.bind(self, socket)
|
||||||
socket.on('close', self.onCloseBound)
|
socket.on('close', socket.onCloseBound)
|
||||||
}
|
}
|
||||||
|
|
||||||
Server.prototype._onWebSocketRequest = function (socket, opts, params) {
|
Server.prototype._onWebSocketRequest = function (socket, opts, params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user