From 38eb8c81609365253c17301c528c24bed60e44a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haz=20=C3=86=2041?= <4405263+hazae41@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:21:12 +0100 Subject: [PATCH] debug --- package.json | 2 +- src/mods/tls.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 598befc..40e4986 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "@hazae41/cadenas", - "version": "0.1.0", + "version": "0.1.2", "description": "Zero-copy TLS protocol for the web", "homepage": "https://github.com/hazae41/cadenas", "repository": "github:hazae41/cadenas", diff --git a/src/mods/tls.ts b/src/mods/tls.ts index c22d392..667daac 100644 --- a/src/mods/tls.ts +++ b/src/mods/tls.ts @@ -251,14 +251,14 @@ export class TlsStream extends AsyncEventTarget { } private async onReadClose() { - console.debug(`${this.#class.name}.onReadClose`) + // console.debug(`${this.#class.name}.onReadClose`) const closeEvent = new CloseEvent("close", {}) if (!await this.read.dispatchEvent(closeEvent)) return } private async onWriteClose() { - console.debug(`${this.#class.name}.onWriteClose`) + // console.debug(`${this.#class.name}.onWriteClose`) const closeEvent = new CloseEvent("close", {}) if (!await this.write.dispatchEvent(closeEvent)) return @@ -268,7 +268,7 @@ export class TlsStream extends AsyncEventTarget { if (Streams.isCloseError(error)) return await this.onReadClose() - console.debug(`${this.#class.name}.onReadError`, error) + // console.debug(`${this.#class.name}.onReadError`, error) const errorEvent = new ErrorEvent("error", { error }) if (!await this.read.dispatchEvent(errorEvent)) return @@ -278,7 +278,7 @@ export class TlsStream extends AsyncEventTarget { if (Streams.isCloseError(error)) return await this.onWriteClose() - console.debug(`${this.#class.name}.onWriteError`, error) + // console.debug(`${this.#class.name}.onWriteError`, error) const errorEvent = new ErrorEvent("error", { error }) if (!await this.write.dispatchEvent(errorEvent)) return @@ -287,7 +287,7 @@ export class TlsStream extends AsyncEventTarget { private async onError(event: Event) { const errorEvent = event as ErrorEvent - console.debug(`${this.#class.name}.onError`, errorEvent) + // console.debug(`${this.#class.name}.onError`, errorEvent) const errorEventClone = Events.clone(errorEvent) if (!await this.dispatchEvent(errorEventClone)) return