settings: undefined, // Instance of _kiwi.model.DataStore\r
plugins: undefined, // Instance of _kiwi.model.PluginManager\r
events: undefined, // Instance of PluginInterface\r
+ rpc: undefined, // Instance of WebsocketRpc\r
utils: {}, // References to misc. re-usable helpers / functions\r
\r
initUtils: function() {\r
this.utils.hsl2rgb = hsl2rgb;\r
},\r
\r
- rpc: function() {\r
- if (!_kiwi.gateway.rpc) {\r
- throw 'RPC unavailable. Is Kiwi connected to the server yet?';\r
- }\r
-\r
- return _kiwi.gateway.rpc.apply(_kiwi.gateway.rpc, arguments);\r
- },\r
-\r
- rpcNamespace: function(namespace) {\r
- if (!_kiwi.gateway.rpc) {\r
- throw 'RPC unavailable. Is Kiwi connected to the server yet?';\r
- }\r
-\r
- return _kiwi.gateway.rpc.namespace(namespace);\r
- },\r
-\r
addMediaMessageType: function(match, buildHtml) {\r
_kiwi.view.MediaMessage.addType(match, buildHtml);\r
},\r