diff --git a/src/modules/evbc/client.ts b/src/modules/evbc/client.ts index 4ff93d40..232d5013 100644 --- a/src/modules/evbc/client.ts +++ b/src/modules/evbc/client.ts @@ -34,6 +34,10 @@ class EVBackendClient { interfaces: null, }; + public get connection(): EVBackendConnection { + return this._cxn; + } + async connect(url: string): Promise { if (this._cxn) { await this._cxn._disconnect(); diff --git a/src/modules/evbc/connection.ts b/src/modules/evbc/connection.ts index 50e578c6..d8020425 100644 --- a/src/modules/evbc/connection.ts +++ b/src/modules/evbc/connection.ts @@ -54,6 +54,10 @@ class EVBackendConnection { } } + public get url(): string { + return this._url; + } + _connect_websocket_mode() { this.rpc_issuer = new WebsocketRpcIssuer(this._url, this._publish_connection_state.bind(this)); } diff --git a/src/pages/MainPanel.vue b/src/pages/MainPanel.vue index 6035a218..56c36cb8 100644 --- a/src/pages/MainPanel.vue +++ b/src/pages/MainPanel.vue @@ -86,7 +86,7 @@ export default defineComponent({ }), computed: { connectionUrl() { - return evbc?._cxn?._url ?? "nothing"; + return evbc?.connection.url ?? "nothing"; } }, methods: {