mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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.
This commit is contained in:
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…
Reference in New Issue
Block a user