From 127d8196349e390b4725049512f3e6c1c8c64e10 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 19 Sep 2014 14:53:30 +0100 Subject: [PATCH] Kiwi server connect plugin event --- client/src/models/application.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/models/application.js b/client/src/models/application.js index 7a97e3b..aab897d 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -210,6 +210,11 @@ that.view.$el.addClass('connected'); + // Make the rpc globally available for plugins + _kiwi.global.rpc = _kiwi.gateway.rpc; + + _kiwi.global.events.emit('connected'); + // If we were reconnecting, show some messages we have connected back OK if (gw_stat === 1) { -- 2.25.1