Nicolas Dextraze
f7c13634cc
Updated uuid/webpack packages Added froze on objects publicly exposed Removed remaining while loops for actions/events processing
7 lines
285 B
JavaScript
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);
|
|
};
|