fore.st/src/io/cluster/nullclusterclient.js
2021-12-06 19:56:40 -05:00

14 lines
317 B
JavaScript

import Promise from 'bluebird';
export default class NullClusterClient {
constructor(ioConfig) {
this.ioConfig = ioConfig;
}
getSocketConfig(_channel) {
const servers = this.ioConfig.getSocketEndpoints();
return Promise.resolve({
servers: servers
});
}
}