node-eventstore-client/src/gossipSeed.js
Nicolas Dextraze f7c13634cc Fixed failing samples
Updated uuid/webpack packages
Added froze on objects publicly exposed
Removed remaining while loops for actions/events processing
2017-04-16 12:51:17 -07:00

7 lines
285 B
JavaScript

module.exports = function GossipSeed(endPoint, hostName) {
if (typeof endPoint !== 'object' || !endPoint.host || !endPoint.port) throw new TypeError('endPoint must be have host and port properties.');
this.endPoint = endPoint;
this.hostName = hostName;
Object.freeze(this);
};