From 5fcae7e61ab12de819aeafefe72d0641882f44bd Mon Sep 17 00:00:00 2001 From: thelittlefox Date: Thu, 7 Dec 2023 08:50:23 +0800 Subject: [PATCH] add a method to verify whether websocket is working correctly --- Enabling-WebSocket-notifications.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Enabling-WebSocket-notifications.md b/Enabling-WebSocket-notifications.md index ec99a0f..26a4da0 100644 --- a/Enabling-WebSocket-notifications.md +++ b/Enabling-WebSocket-notifications.md @@ -29,5 +29,8 @@ Example configurations are included in [[Proxy examples|proxy-examples]]. Testing if a connection is working correctly can be done in two ways: 1. Open the developer tools of your browser, go to the network tab and filter for `WS`/`WebSockets`. Logout or refresh the page and login again and you you should see a 101 response for the upgraded WebSocket connection. If you click on that line you should be able to see the messages. If you do not get the status code 101 on `/notifications/hub` then something is configured incorrectly. +Messages will be shown in the console window of your browser: + +`[2023-12-01T00:00:00.000Z] Information: WebSocket connected to wss://HOST_NAME/notifications/hub?access_token=eyJ0eX......` 2. Open two different browsers or an incognito/private window. Login into your account on both. Either create a new entry, or rename the cipher in one, and that should instantly change also in the other.