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.
pull/1027/head
Jordi Gutiérrez Hermoso 4 months ago committed by jordigh
parent a304b22623
commit c3e23ca81e

@ -118,7 +118,7 @@ const _webSocketsProbe: Probe = {
url, url,
}; };
ws.on('open', () => { ws.on('open', () => {
ws.send('Just nod if you can hear me.'); ws.send('{"msg": "Just nod if you can hear me."}');
resolve({ resolve({
status: 'success', status: 'success',
details, details,

Loading…
Cancel
Save