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 1
1
import AppConsts from './appconst'
2
2
import Util from './util'
3
- class SignalRAspNetCoreHelper {
4
- initSignalR ( ) {
3
+ class SignalRAspNetCoreHelper {
4
+ initSignalR ( ) {
5
5
var encryptedAuthToken = Util . abp . utils . getCookieValue ( AppConsts . authorization . encrptedAuthTokenName ) ;
6
-
6
+ let remoteServerUrl = AppConsts . remoteServiceBaseUrl ;
7
7
Util . abp . signalr = {
8
8
autoConnect : true ,
9
9
connect : undefined ,
10
10
hubs : undefined ,
11
11
qs : AppConsts . authorization . encrptedAuthTokenName + "=" + encodeURIComponent ( encryptedAuthToken ) ,
12
- url : AppConsts . remoteServiceBaseUrl + '/signalr'
12
+ remoteServiceBaseUrl : remoteServerUrl . endsWith ( '/' ) ? remoteServerUrl . slice ( 0 , - 1 ) : remoteServerUrl
13
13
} ;
14
14
15
15
Util . loadScript ( AppConsts . appBaseUrl + '/dist/abp.signalr-client.js' ) ;
You can’t perform that action at this time.
0 commit comments