···72727373 override onListen() {
7474 MyCoolServer.logger.info(
7575- `Listening on ${MyCoolServer.hostname}:${MyCoolServer.port}.`,
7575+ `Listening on ${this.hostname}:${this.port}.`,
7676 );
7777 }
7878}
+8-8
laurali/server.ts
···3939 /** All registered hook functions of the `Server` */
4040 static #hooks: Map<Hook, (ctx: Deno.TlsConn) => void> = new Map();
4141 /** The port of the `Server` */
4242- static #port: number;
4242+ #port: number;
4343 /** The hostname of the `Server` */
4444- static #hostname: string;
4444+ #hostname: string;
45454646 /**
4747 * @param certFile The path to the public key file of the `Server`
···5656 const port = config?.port || 1965;
5757 const hostname = config?.hostname || "0.0.0.0";
58585959- Server.#port = port;
6060- Server.#hostname = hostname;
5959+ this.#port = port;
6060+ this.#hostname = hostname;
61616262 this.#listener = Deno.listenTls({
6363 port,
···7878 }
79798080 /** Get the `port` of the `Server` */
8181- static get port() {
8282- return Server.#port;
8181+ get port() {
8282+ return this.#port;
8383 }
84848585 /** Get the `hostname` of the `Server` */
8686- static get hostname() {
8787- return Server.#hostname;
8686+ get hostname() {
8787+ return this.#hostname;
8888 }
89899090 /** Called before a connection to a client has been responded to */