{"size": 628, "ext": "js", "max_stars_repo_path": "server/web/bayeux.js", "max_stars_repo_name": "ahmedsalihh/gitter-test", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/web/bayeux.js", "max_issues_repo_name": "ahmedsalihh/gitter-test", "max_issues_repo_issues_event_min_datetime": "2021-05-09T12:02:38.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T23:54:34.000Z", "max_forks_repo_path": "server/web/bayeux.js", "max_forks_repo_name": "ahmedsalihh/gitter-test", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 24.1538461538, "max_line_length": 62, "alphanum_fraction": 0.7611464968}
'use strict';

var BayeuxCluster = require('./bayeux/cluster');

var cluster = new BayeuxCluster(false);

exports.clientExists = function(clientId, callback) {
  return cluster.clientExists(clientId, callback);
};

exports.publish = function(channel, message) {
  return cluster.publish(channel, message);
};

exports.destroyClient = function(clientId, callback) {
  return cluster.destroyClient(clientId, callback);
};

exports.attach = function(httpServer) {
  return cluster.attach(httpServer);
};

exports.unsubscribeFromTroupe = function(clientId, troupeId) {
  return cluster.unsubscribeFromTroupe(clientId, troupeId);
};
