From b35cf776aa2bebce40e3b656a9af41e127327736 Mon Sep 17 00:00:00 2001 From: ProgrammerIn-wonderland <3838shah@gmail.com> Date: Wed, 15 Jan 2025 00:01:43 -0500 Subject: [PATCH] add 0x01 and 0x03 wisp messages --- src/puter-js/src/modules/networking/parsers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/puter-js/src/modules/networking/parsers.js b/src/puter-js/src/modules/networking/parsers.js index dcbbef2f..c4f924de 100644 --- a/src/puter-js/src/modules/networking/parsers.js +++ b/src/puter-js/src/modules/networking/parsers.js @@ -15,7 +15,9 @@ export const UDP = 0x02; export const textde = new TextDecoder(); const texten = new TextEncoder(); export const errors = { - 0x41: "Stream creation failed due to invalid information. This could be sent if the destination was a reserved address or the port is invalid." + 0x01: "Reason unspecified or unknown. Returning a more specific reason should be preferred." + ,0x03: "Unexpected stream closure due to a network error." + ,0x41: "Stream creation failed due to invalid information. This could be sent if the destination was a reserved address or the port is invalid." ,0x42: "Stream creation failed due to an unreachable destination host. This could be sent if the destination is an domain which does not resolve to anything." ,0x43: "Stream creation timed out due to the destination server not responding." ,0x44: "Stream creation failed due to the destination server refusing the connection."