File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Abp/Framework/scripts/libs Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ var abp = abp || {};
73
73
}
74
74
75
75
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 ( ) ;
78
80
if ( configureConnection && typeof configureConnection === 'function' ) {
79
81
configureConnection ( connection ) ;
80
82
}
@@ -84,14 +86,14 @@ var abp = abp || {};
84
86
return connection ;
85
87
} )
86
88
. 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 ) {
89
91
return start ( transport + 1 ) ;
90
92
}
91
93
92
94
return Promise . reject ( error ) ;
93
95
} ) ;
94
- } ( signalR . TransportType . WebSockets ) ;
96
+ } ( signalR . HttpTransportType . WebSockets ) ;
95
97
}
96
98
97
99
abp . signalr . startConnection = startConnection ;
You can’t perform that action at this time.
0 commit comments