sync/src/io/cluster/nullclusterclient.js

15 lines
316 B
JavaScript
Raw Normal View History

2015-10-19 22:32:00 -07:00
import Promise from 'bluebird';
export default class NullClusterClient {
constructor(ioConfig) {
this.ioConfig = ioConfig;
}
2015-10-21 20:56:09 -07:00
getSocketConfig(channel) {
2015-10-25 17:20:39 -07:00
const servers = this.ioConfig.getSocketEndpoints();
2015-10-21 20:56:09 -07:00
return Promise.resolve({
2015-10-25 17:20:39 -07:00
servers: servers
2015-10-21 20:56:09 -07:00
});
2015-10-19 22:32:00 -07:00
}
}