BaseServer.js 442 B

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