Base solution for your next web application

Activities of "tapio.muikku"

I encountered to same issue. After looking through the code I believe issue is in the signalRHelper.ts file. I got this working by following change:

export class SignalRHelper {
    static initSignalR(callback: () => void): void {
        new LocalStorageService().getItem(
            AppConsts.authorization.encrptedAuthTokenName,
            function (err, value) {
                let encryptedAuthToken = value?.token;
                // qsAuthtoken set as undefined initially. Initialize it only when we have token available
                let qsAuthToken: string;
                if (encryptedAuthToken) {
                    qsAuthToken =
                        AppConsts.authorization.encrptedAuthTokenName +
                        "=" +
                        encodeURIComponent(encryptedAuthToken);
                }

                abp.signalr = {
                    autoConnect: false, // _zone.runOutsideAngular in ChatSignalrService
                    // autoReconnect: true,
                    connect: undefined,
                    hubs: undefined,
                    qs: qsAuthToken,
                    remoteServiceBaseUrl: AppConsts.remoteServiceBaseUrl,
                    startConnection: undefined,
                    url: "/signalr",
                };
Showing 1 to 1 of 1 entries