UNPKG

node-eventstore-client

Version:

A port of the EventStore .Net ClientAPI to Node.js

12 lines (10 loc) 356 B
function StaticEndpointDiscoverer(tcpEndPoint, useSsl) { this._nodeEndpoints = { tcpEndPoint: useSsl ? null : tcpEndPoint, secureTcpEndPoint: useSsl ? tcpEndPoint : null } } StaticEndpointDiscoverer.prototype.discover = function(failedTcpEndpoint) { return Promise.resolve(this._nodeEndpoints); }; module.exports = StaticEndpointDiscoverer;