diff --git a/package.json b/package.json index 532035f..2dcee12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastybird/vue-wamp-v1", - "version": "1.2.2", + "version": "1.2.3", "description": "WAMPv1 websockets client for VUE 3", "keywords": [ "ws", diff --git a/src/entry.ts b/src/entry.ts index d3b427b..73b1e13 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -19,13 +19,14 @@ export function createWampV1Client(): InstallFunction { return; } this.installed = true; + this.wampClient = wampClient; const pluginOptions = { ...WampClientDefaultOptions, ...options }; wampClient.host = pluginOptions.host; wampClient.logger = new Logger(pluginOptions.debug); - app.provide(key, this.wampClient); + app.provide(key, wampClient); }, };