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 22// Distributed under the terms of the Modified BSD License.
33
44import { PageConfig , URLExt } from '@jupyterlab/coreutils' ;
5+ import { ServerConnection } from '@jupyterlab/services' ;
56import { IDocumentWidget } from '@jupyterlab/docregistry' ;
67import { ISignal , Signal } from '@lumino/signaling' ;
78
@@ -547,7 +548,8 @@ export namespace DocumentConnectionManager {
547548 virtualDocument : VirtualDocument ,
548549 language : string
549550 ) : IURIs | undefined {
550- const wsBase = PageConfig . getBaseUrl ( ) . replace ( / ^ h t t p / , 'ws' ) ;
551+ const settings = ServerConnection . makeSettings ( ) ;
552+ const wsBase = settings . wsUrl ;
551553 const rootUri = PageConfig . getOption ( 'rootUri' ) ;
552554 const virtualDocumentsUri = PageConfig . getOption ( 'virtualDocumentsUri' ) ;
553555
You can’t perform that action at this time.
0 commit comments