runs(function () { Integration.sendAPIMessage({ url: Integration.API_URL + "/v2/send", channel: channelName, event: eventName, data: {} }); timer = new Timer(3000, function() {}); });
runs(function() { channel.bind(eventName, function(message) { received = message; }); Integration.sendAPIMessage({ url: Integration.API_URL + "/v2/send", channel: channelName, event: eventName, data: data }); });
runs(function() { channel.bind(eventName, function(message) { received = message; }); pusher.unsubscribe(channelName); Integration.sendAPIMessage({ url: Integration.API_URL + "/v2/send", channel: channelName, event: eventName, data: {} }); timer = new Timer(3000, function() {}); });