From 6d6d3b7bb967f98b05520226944de5c2c12a0db8 Mon Sep 17 00:00:00 2001 From: Ivan Galetsky Date: Mon, 19 Sep 2022 12:55:58 +0300 Subject: [PATCH] Fix for applying runtime config --- src/runtime/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/plugin.js b/src/runtime/plugin.js index 202617b..b2df0e7 100644 --- a/src/runtime/plugin.js +++ b/src/runtime/plugin.js @@ -20,7 +20,7 @@ export default async function (ctx, inject) { if (!window.io) window.io = require('socket.io-client') <% } %> - const echo = new Echo(ctx, defu(echoOptions, <%= serializeFunction(options) %>)) + const echo = new Echo(ctx, defu((ctx.$config && ctx.$config.echo || {}), echoOptions, <%= serializeFunction(options) %>)) await echo.init() inject('echo', echo)