Kiwi server connect plugin event
authorDarren <darren@darrenwhitlen.com>
Fri, 19 Sep 2014 13:53:30 +0000 (14:53 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 19 Sep 2014 13:53:30 +0000 (14:53 +0100)
client/src/models/application.js

index 7a97e3bf8c7209965c9902a9c4b459174b04bdba..aab897d362c14ca3c419a43099cd3b34f50c3b55 100644 (file)
 \r
                     that.view.$el.addClass('connected');\r
 \r
+                    // Make the rpc globally available for plugins\r
+                    _kiwi.global.rpc = _kiwi.gateway.rpc;\r
+\r
+                    _kiwi.global.events.emit('connected');\r
+\r
                     // If we were reconnecting, show some messages we have connected back OK\r
                     if (gw_stat === 1) {\r
 \r