3 var BayeuxCluster
= require('./bayeux/cluster');
5 var cluster
= new BayeuxCluster(false);
7 exports
.clientExists = function(clientId
, callback
) {
8 return cluster
.clientExists(clientId
, callback
);
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
);