Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Viewing the websocket connections #11

Open
AxelHamburch opened this issue May 13, 2023 · 0 comments
Open

Feature Request: Viewing the websocket connections #11

AxelHamburch opened this issue May 13, 2023 · 0 comments

Comments

@AxelHamburch
Copy link

The QR code pop up window for the bitcoinSwitch shows the status of the websocket connection between the LNbits server and the web browser. Unfortunately you can't see directly if the connection to the device is working. But you could indirectly see if the connection to the ESP32 is established. This is done by counting and displaying the number of active websocket connections of the LNURLdevice instance. If there is only one, then that is probably the active connection of the web page to the LNbits server. But if two are shown, then there is a high probability that the second connection is the one to the bitcoinSwitch. This would indirectly give you the possibility to check the connection.

Example - QR Code pop up windows:
image

In the following screnshot of a LNbits server log you can see the first connection of the ESP32 that was connected. The second is the QR code pop up window. Both times there is a "connection open". If I disconnect the ESP32 or leave the page with the pop up window, then both times there is also a "connection closed".

image

Is it possible to sum up the number of active websocket connections of a LNURLdevice instance and display them in the pop up window?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant