From c3e23ca81ec7a8fcded3f3b10403bcb69c4dc12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Guti=C3=A9rrez=20Hermoso?= Date: Thu, 6 Jun 2024 16:14:35 -0400 Subject: [PATCH] admin: fix warning in websocket probe This is a small thing, but when visiting the admin, the websocket test doesn't send valid JSON, which the receiving endpoint expects. This results in a harmless exception being thrown. While this test should eventually be modified to be run from the frontend, for now let's just make a small fix and send valid JSON in order to avoid that JSON parsing exception. --- app/server/lib/BootProbes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/lib/BootProbes.ts b/app/server/lib/BootProbes.ts index df9427f2..61ac66eb 100644 --- a/app/server/lib/BootProbes.ts +++ b/app/server/lib/BootProbes.ts @@ -118,7 +118,7 @@ const _webSocketsProbe: Probe = { url, }; ws.on('open', () => { - ws.send('Just nod if you can hear me.'); + ws.send('{"msg": "Just nod if you can hear me."}'); resolve({ status: 'success', details,