You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
428 B

3 months ago
  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. };