feat: add base mod

This commit is contained in:
2024-07-19 18:49:37 +02:00
parent f1764732c3
commit 4ffcb4a2fa
8 changed files with 68 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ export class Client {
* closed when accessing the .stream on the response. Otherwise a manual .close must
* be executed on the response to ensure that the connection is cleaned up.
*/
get connection() {
get connection(): Promise<Deno.UnixConn> | Promise<Deno.TcpConn> {
if ("path" in this.options) {
return Deno.connect(this.options);
}