if (typeof kiwi_server !== 'undefined') {
gateway.socket = io.connect(kiwi_server);
gateway.socket.on('connect', function () {
- console.debug("Connecting to " + kiwi_server);
gateway.sendData = function (data, callback) {
gateway.socket.emit('message', {sid: this.session_id, data: $.toJSON(data)}, callback);
};
debug
*/
parse: function (item) {
- console.debug('a',item);
if (item.event !== undefined) {
$(gateway).trigger("on" + item.event, item);