File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import AppConsts from './appconst'
22import Util from './util'
3- class SignalRAspNetCoreHelper {
4- initSignalR ( ) {
3+ class SignalRAspNetCoreHelper {
4+ initSignalR ( ) {
55 var encryptedAuthToken = Util . abp . utils . getCookieValue ( AppConsts . authorization . encrptedAuthTokenName ) ;
6-
6+ let remoteServerUrl = AppConsts . remoteServiceBaseUrl ;
77 Util . abp . signalr = {
88 autoConnect : true ,
99 connect : undefined ,
1010 hubs : undefined ,
1111 qs : AppConsts . authorization . encrptedAuthTokenName + "=" + encodeURIComponent ( encryptedAuthToken ) ,
12- url : AppConsts . remoteServiceBaseUrl + '/signalr'
12+ remoteServiceBaseUrl : remoteServerUrl . endsWith ( '/' ) ? remoteServerUrl . slice ( 0 , - 1 ) : remoteServerUrl
1313 } ;
1414
1515 Util . loadScript ( AppConsts . appBaseUrl + '/dist/abp.signalr-client.js' ) ;
You can’t perform that action at this time.
0 commit comments