Skip to content

Commit 24fcdb6

Browse files
committed
Upgrade to ABP v3.7.0.
1 parent 3748c4b commit 24fcdb6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Abp/Framework/scripts/libs/abp.signalr-client.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ var abp = abp || {};
7373
}
7474

7575
return function start(transport) {
76-
abp.log.debug('Starting connection using ' + signalR.TransportType[transport] + ' transport');
77-
var connection = new signalR.HubConnection(url, { transport: transport });
76+
abp.log.debug('Starting connection using ' + signalR.HttpTransportType[transport] + ' transport');
77+
var connection = new signalR.HubConnectionBuilder()
78+
.withUrl(url, transport)
79+
.build();
7880
if (configureConnection && typeof configureConnection === 'function') {
7981
configureConnection(connection);
8082
}
@@ -84,14 +86,14 @@ var abp = abp || {};
8486
return connection;
8587
})
8688
.catch(function (error) {
87-
abp.log.debug('Cannot start the connection using ' + signalR.TransportType[transport] + ' transport. ' + error.message);
88-
if (transport !== signalR.TransportType.LongPolling) {
89+
abp.log.debug('Cannot start the connection using ' + signalR.HttpTransportType[transport] + ' transport. ' + error.message);
90+
if (transport !== signalR.HttpTransportType.LongPolling) {
8991
return start(transport + 1);
9092
}
9193

9294
return Promise.reject(error);
9395
});
94-
}(signalR.TransportType.WebSockets);
96+
}(signalR.HttpTransportType.WebSockets);
9597
}
9698

9799
abp.signalr.startConnection = startConnection;

0 commit comments

Comments
 (0)