Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / web / bayeux.js
blob454c9b9cf1b2a830dec517ee75b9601e2bcd1f99
1 'use strict';
3 var BayeuxCluster = require('./bayeux/cluster');
5 var cluster = new BayeuxCluster(false);
7 exports.clientExists = function(clientId, callback) {
8 return cluster.clientExists(clientId, callback);
9 };
11 exports.publish = function(channel, message) {
12 return cluster.publish(channel, message);
15 exports.destroyClient = function(clientId, callback) {
16 return cluster.destroyClient(clientId, callback);
19 exports.attach = function(httpServer) {
20 return cluster.attach(httpServer);
23 exports.unsubscribeFromTroupe = function(clientId, troupeId) {
24 return cluster.unsubscribeFromTroupe(clientId, troupeId);