From 3e84821c239bfe97a40f0ef7fa74612d1e7470d4 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 14 Jan 2024 21:42:58 +0700 Subject: [PATCH] chore(apis/websocket): update config schema --- apis/websocket/{config.json => config.example.json} | 2 +- apis/websocket/config.revanced.json | 9 +++++++++ apis/websocket/config.schema.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) rename apis/websocket/{config.json => config.example.json} (83%) create mode 100755 apis/websocket/config.revanced.json diff --git a/apis/websocket/config.json b/apis/websocket/config.example.json similarity index 83% rename from apis/websocket/config.json rename to apis/websocket/config.example.json index 0217e3a..9a07cd7 100755 --- a/apis/websocket/config.json +++ b/apis/websocket/config.example.json @@ -5,5 +5,5 @@ "port": 3000, "ocrConcurrentQueues": 1, "clientHeartbeatInterval": 5000, - "consoleLogLevel": "silly" + "consoleLogLevel": "log" } diff --git a/apis/websocket/config.revanced.json b/apis/websocket/config.revanced.json new file mode 100755 index 0000000..ef47645 --- /dev/null +++ b/apis/websocket/config.revanced.json @@ -0,0 +1,9 @@ +{ + "$schema": "./config.schema.json", + + "address": "127.0.0.1", + "port": 3000, + "ocrConcurrentQueues": 3, + "clientHeartbeatInterval": 5000, + "consoleLogLevel": "log" +} diff --git a/apis/websocket/config.schema.json b/apis/websocket/config.schema.json index be812b1..51965c1 100755 --- a/apis/websocket/config.schema.json +++ b/apis/websocket/config.schema.json @@ -25,7 +25,7 @@ "consoleLogLevel": { "description": "The log level to print to console", "type": "string", - "enum": ["error", "warn", "info", "log", "debug", "none"], + "enum": ["error", "warn", "info", "log", "debug", "trace", "none"], "default": "info" } }