diff options
| author | Fuwn <[email protected]> | 2022-05-17 08:04:06 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-17 08:04:06 +0000 |
| commit | 4ffddf6fc7db48358305859397cb0ccc6bb841a4 (patch) | |
| tree | e8250d14d7ab606b34b1e05ef4c1a79095d51153 | |
| parent | fix(deno.json): my_cool_server throws (diff) | |
| download | laurali-4ffddf6fc7db48358305859397cb0ccc6bb841a4.tar.xz laurali-4ffddf6fc7db48358305859397cb0ccc6bb841a4.zip | |
refactor(server): make ctx explicitly optional
| -rw-r--r-- | laurali/server.ts | 4 |
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; |