Hello together,
another example/template from me. This example catches the "onBack" event from hudiy gui and then goes back to the hudiy dashboard (home screen) via "DispatchAction" from hudiy websocket connection.
So this is kind of a simplified "back button" in your application.
@Hudiy: Maybe it would be easier, if there would have a special hudiy object to get back to the hudiy dasboard (home screen).
Something like "onBack" was detected, then go back to hudiy dashboard (like pressing "H" or sending DispatchAction "hudiy_dashboard") without the need to connect to api/websocket with keep alive (pong messages) etc.
More details:
-The application/html site will connect to the hudiy websocket (ws://127.0.0.1:44406)
-If the websocket connection is active you'll see a green dot on the right bottom corner of the site
-It will automatically answer websocket keep alive requests
-It will catch the onBack event (if you press ESC on your keyboard in your application)
-It will then goes back to the hudiy dashboard (home screen)
Important: The files "protobuf.min.js" and "hudiy_client.js" has to be in a folder named "common" under the path of the html side
Applications: Catch hudiy onBack event and go back to hudiy dasboard
-
noobychris
- Posts: 25
- Joined: Fri Aug 15, 2025 5:06 pm
- Location: Germany
- Contact:
Applications: Catch hudiy onBack event and go back to hudiy dasboard
- Attachments
-
- catch hudiy onGoBack.zip
- (2.1 KiB) Downloaded 71 times