You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the signalr.connection.js, at line 157.
SignalRConnection.prototype.listen =
/**
* @template T
* @param {?} listener
* @return {?} /
function (listener) {
var _this = this;
if (listener == null) {
throw new Error('Failed to listen. Argument 'listener' can not be null');
}
var /* @type {?} / callback = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
_this.run(function () {
var /* @type {?} / casted = null;
if (args.length > 0) {
casted = /* @type {?} */ (args[0]); <---- this seems to be the issue but not sure if the behaviour is intended. I made the modification to args instead of args[0] and managed for it to work in my situation.
}
_this.log('SignalRConnection.proxy.on invoked. Calling listener next() ...');
console.log(casted)
listener.next(casted);
_this.log('listener next() called.');
}, _this._configuration.executeEventsInZone);
};
this.setListener(callback, listener);
};
The text was updated successfully, but these errors were encountered:
In the signalr.connection.js, at line 157.
SignalRConnection.prototype.listen =
/**
* @template T
* @param {?} listener
* @return {?}
/
function (listener) {
var _this = this;
if (listener == null) {
throw new Error('Failed to listen. Argument 'listener' can not be null');
}
var /* @type {?} / callback = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
_this.run(function () {
var /* @type {?} / casted = null;
if (args.length > 0) {
casted = /* @type {?} */ (args[0]); <---- this seems to be the issue but not sure if the behaviour is intended. I made the modification to args instead of args[0] and managed for it to work in my situation.
}
_this.log('SignalRConnection.proxy.on invoked. Calling listener next() ...');
console.log(casted)
listener.next(casted);
_this.log('listener next() called.');
}, _this._configuration.executeEventsInZone);
};
this.setListener(callback, listener);
};
The text was updated successfully, but these errors were encountered: