UNPKG

@evpower/ocpp-ts

Version:

OCPP 1.6: Open Charge Point Protocol

41 lines 1.76 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.OcppServer = void 0; var Server_1 = require("./impl/Server"); var OcppServer = /** @class */ (function (_super) { __extends(OcppServer, _super); function OcppServer() { return _super !== null && _super.apply(this, arguments) || this; } OcppServer.prototype.setPingInterval = function (pingInterval) { _super.prototype.setPingInterval.call(this, pingInterval); }; OcppServer.prototype.listen = function (port, options) { if (port === void 0) { port = 9220; } _super.prototype.listen.call(this, port, options); }; OcppServer.prototype.close = function () { _super.prototype.close.call(this); }; OcppServer.prototype.on = function (event, listener) { return _super.prototype.on.call(this, event, listener); }; return OcppServer; }(Server_1.Server)); exports.OcppServer = OcppServer; //# sourceMappingURL=OcppServer.js.map