Skip to content

Commit bd92a82

Browse files
committed
fix: reference error
1 parent 5379416 commit bd92a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ Server.prototype.onWebSocketConnection = function (socket, opts) {
303303
socket.onSend = self._onWebSocketSend.bind(self, socket)
304304

305305
socket.onMessageBound = self._onWebSocketRequest.bind(self, socket, opts)
306-
socket.on('message', self.onMessageBound)
306+
socket.on('message', socket.onMessageBound)
307307

308308
socket.onErrorBound = self._onWebSocketError.bind(self, socket)
309-
socket.on('error', self.onErrorBound)
309+
socket.on('error', socket.onErrorBound)
310310

311311
socket.onCloseBound = self._onWebSocketClose.bind(self, socket)
312-
socket.on('close', self.onCloseBound)
312+
socket.on('close', socket.onCloseBound)
313313
}
314314

315315
Server.prototype._onWebSocketRequest = function (socket, opts, params) {

0 commit comments

Comments
 (0)