feature: Adds basic command layout.

This commit is contained in:
greysoh 2024-05-07 11:44:45 -04:00
parent 56338544b5
commit 32b77b12a2
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
6 changed files with 237 additions and 17 deletions

View file

@ -54,6 +54,7 @@ function parseBackendProviderString(data: string): BackendParsedProviderString {
if (typeof jsonData.ip != "string")
throw new Error("IP field is not a string");
if (typeof jsonData.port != "number") throw new Error("Port is not a number");
if (
@ -61,6 +62,7 @@ function parseBackendProviderString(data: string): BackendParsedProviderString {
typeof jsonData.publicPort != "number"
)
throw new Error("(optional field) Proxied port is not a number");
if (
typeof jsonData.isProxied != "undefined" &&
typeof jsonData.isProxied != "boolean"