Commit Graph
13 Commits
Author SHA1 Message Date
Kenneth Skovhede e9af50f9ac Added minor code cleanup
- Added missing cultureinformation on some date/time strings
- Added a check if a file exists to avoid an exception when probing for datafolder files
- Fixed a string that should be a constant
- Fixed a dirseparator append
- Fixed places where the exception message was logged into the log message itself creating double data
2026-01-23 11:43:59 +01:00
Kenneth Skovhede 7f11f9db2e Handle auth messages after being authenticated. 2025-12-19 11:44:19 +01:00
Kenneth Skovhede e2f37fb86b Improved support for authenticating behind a proxy
This PR adds new support for fine-grained control over the server/ui handling when the X-Forwarded-Prefix header is set.

Additionally, this allows getting a websocket token, so cases where the websocket is not pre-authenticated, but regular requests are authenticated, it works the same.

Added a new endpoint for probing for pre-authenticed conditions without causing a 401 to be logged.
2025-12-16 14:39:58 +01:00
Kenneth Skovhede dc19695ddb Add completed-task event to websocket
This adds support for subscribing to a "completed task" event, that is triggered when a task completes.

Using this subscription removes the need to poll for task state.
2025-06-18 21:15:56 +02:00
Kenneth Skovhede 52ee8d1004 Reduce logging of websocket messages
This updates the websocket authenticator to only produce verbose messages, as the connections are expected to fail for various reasons.
2025-06-12 09:33:02 +02:00
Kenneth Skovhede c8b9fb5c73 Websocket subscriptions
This PR adds the ability to subscribe to messages over a websocket.

To prevent polling data, the server can now push messages through the websocket, so the client can instantly update when new data is available.

The change is backwards compatible, still serving the status updates over the socket. If the client is providing the authentication token, it is auto-subscried to the legacy status message.

If the client is using the new authentication message, it needs to subscribe to get the status updates (and any other services it needs).

The event system has been extended to support new, and more accurate, events. This is the first step towards removing the general status update and the long-poll mechanism.

This also re-introduces the blocking marker, so the client can know if the operation is halted due to too many pending transfers.

Some endpoints have been moved to service implementations, to allow serving the exact same data from both endpoints and websocket.

This PR also updates the way the progress is handled, so that all transfers are returned to the client, and the transfer speeds for each transfer is calculated based on a small sample buffer, so the values are more accurate even if the program is paused during transfers.
2025-05-27 12:13:07 +02:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede a1e8c197f6 Fixed a webserver crash 2024-10-01 08:43:09 +02:00
natan 27ce549e75 cleanup WebsocketAccessor.cs and StatusService.cs a bit.
Remove /serverstate endpoint
2024-07-12 17:59:21 +02:00
Kenneth Skovhede 94d6ab76ee Changed logic for reconnect to not rely on serverstate API.
Changed websocket to send current state on initial connect.
2024-07-11 16:24:22 +02:00
natan 6e16e1d9ed fix multiple WS messages bug 2024-04-25 17:06:10 +02:00
natan d78b9f2c63 WIP 2024-04-03 10:40:29 +02:00
natan 5d53eddb32 WIP 2024-03-26 18:32:56 +01:00