UNPKG

steam-condenser

Version:
23 lines 696 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Server = /** @class */ (function () { function Server(address, port) { if (port === void 0) { port = 27015; } this.timeout = 30000; if (address.indexOf(':') !== -1) { var parts = address.split(':'); this.ipAddress = parts[0]; this.port = Number.parseInt(parts[1], 10); } else { this.ipAddress = address; this.port = port; } } Server.prototype.setTimeout = function (time) { this.timeout = time; }; return Server; }()); exports.default = Server; //# sourceMappingURL=Server.js.map