BaseServer.js 562 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. /** @typedef {import("../Server.js").ClientConnection} ClientConnection */
  7. // base class that users should extend if they are making their own
  8. // server implementation
  9. class BaseServer {
  10. /**
  11. * @param {import("../Server.js").default} server server
  12. */
  13. constructor(server) {
  14. /** @type {import("../Server.js").default} */
  15. this.server = server;
  16. /** @type {ClientConnection[]} */
  17. this.clients = [];
  18. }
  19. }
  20. exports.default = BaseServer;