BaseServer.js 428 B

123456789101112131415161718
  1. "use strict";
  2. /** @typedef {import("../Server").ClientConnection} ClientConnection */
  3. // base class that users should extend if they are making their own
  4. // server implementation
  5. module.exports = class BaseServer {
  6. /**
  7. * @param {import("../Server")} server
  8. */
  9. constructor(server) {
  10. /** @type {import("../Server")} */
  11. this.server = server;
  12. /** @type {ClientConnection[]} */
  13. this.clients = [];
  14. }
  15. };