From 4ffddf6fc7db48358305859397cb0ccc6bb841a4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 17 May 2022 08:04:06 +0000 Subject: refactor(server): make ctx explicitly optional --- laurali/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laurali/server.ts b/laurali/server.ts index bd2ff87..e6706b4 100644 --- a/laurali/server.ts +++ b/laurali/server.ts @@ -88,10 +88,10 @@ export abstract class Server { } /** Called before a connection to a client has been responded to */ - protected onPreRoute?(ctx: Deno.TlsConn): void; + protected onPreRoute?(ctx?: Deno.TlsConn): void; /** Called after a connection to a client has concluded */ - protected onPostRoute?(ctx: Deno.TlsConn): void; + protected onPostRoute?(ctx?: Deno.TlsConn): void; /** Called before the `Server` starts listening for connections */ protected onListen?(): void; -- cgit v1.2.3