aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-17 08:04:06 +0000
committerFuwn <[email protected]>2022-05-17 08:04:06 +0000
commit4ffddf6fc7db48358305859397cb0ccc6bb841a4 (patch)
treee8250d14d7ab606b34b1e05ef4c1a79095d51153
parentfix(deno.json): my_cool_server throws (diff)
downloadlaurali-4ffddf6fc7db48358305859397cb0ccc6bb841a4.tar.xz
laurali-4ffddf6fc7db48358305859397cb0ccc6bb841a4.zip
refactor(server): make ctx explicitly optional
-rw-r--r--laurali/server.ts4
1 files 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;