Commit Graph
10 Commits
Author SHA1 Message Date
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 9f79025744 Removed HttpServer.
Re-implemented everything using ASP.NET.
Changed some requests to use JSON instead of FORM data.
Some work towards deleting the FIXMEGlobal instance.
Auth is missing, XSRF does not work correctly.
2024-06-07 15:56:43 +02:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
drwtsn32x 667094c307 undo changes in pr 3847, implement better fix 2019-09-16 21:52:12 -07:00
Kenneth Skovhede 11f7660939 Implemented logic to report if the backend is blocking the operation. 2017-09-04 12:15:47 +02:00
Kenneth Skovhede a23aeb3716 Added support for keeping temporary backups in server memory so we can do restore on non-persisted backups.
Added type-safe argument passing to the runner.
Added taskID's so the restore dialog can keep track of what tasks it needs to monitor.
2014-03-17 15:27:25 +01:00
Kenneth Skovhede 77c16cc9ed Cleanup removal of long-poll for progress 2014-03-10 15:36:43 +01:00
Kenneth Skovhede 8854f92e43 Updated progress data to work and removed option to long-poll for progress data 2014-03-10 00:16:53 +01:00
Kenneth Skovhede d14ec9432f Rewrote the storage of backup setups 2013-11-23 14:26:36 +01:00