File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
// Distributed under the terms of the Modified BSD License.
3
3
4
4
import { PageConfig , URLExt } from '@jupyterlab/coreutils' ;
5
+ import { ServerConnection } from '@jupyterlab/services' ;
5
6
import { IDocumentWidget } from '@jupyterlab/docregistry' ;
6
7
import { ISignal , Signal } from '@lumino/signaling' ;
7
8
@@ -547,7 +548,8 @@ export namespace DocumentConnectionManager {
547
548
virtualDocument : VirtualDocument ,
548
549
language : string
549
550
) : IURIs | undefined {
550
- const wsBase = PageConfig . getBaseUrl ( ) . replace ( / ^ h t t p / , 'ws' ) ;
551
+ const settings = ServerConnection . makeSettings ( ) ;
552
+ const wsBase = settings . wsUrl ;
551
553
const rootUri = PageConfig . getOption ( 'rootUri' ) ;
552
554
const virtualDocumentsUri = PageConfig . getOption ( 'virtualDocumentsUri' ) ;
553
555
You can’t perform that action at this time.
0 commit comments