signalRJS icon indicating copy to clipboard operation
signalRJS copied to clipboard

Disconnect connection from client

Open mezykr opened this issue 7 years ago • 0 comments

Hi, when connection type is longPolling and client stops connection it crashe

signalrjs/lib/signalRJS.js:94 var transport = self._transports[connection.type]; TypeError: Cannot read property 'type' of undefined

it fixes problem for me (SignalRJS.prototype.poll):

var connection = self._connectionManager.getByToken(token); if (!connection) { return; }

mezykr avatar May 25 '18 11:05 mezykr