added subscription.Message.WriteSSE method

This commit is contained in:
Gani Georgiev
2025-02-21 13:04:23 +02:00
parent 973916bb48
commit 4db497c5e1
6 changed files with 3481 additions and 3409 deletions

View File

@@ -9,7 +9,9 @@
- Added `$os.stat(file)` JSVM helper ([#6407](https://github.com/pocketbase/pocketbase/discussions/6407)).
- Added `Store.SetFunc(key, func(old T) new T)` to set/update a store value with the return result of the callback in a concurrent safe manner.
- Added `store.Store.SetFunc(key, func(old T) new T)` to set/update a store value with the return result of the callback in a concurrent safe manner.
- Added `subscription.Message.WriteSSE(w, id)` for writing an SSE formatted message into the provided writer interface (_usually used for unit testing_).
## v0.25.6