Enhance Realtime adapter to support delete action and add corresponding tests

This commit is contained in:
ArnabChatterjee20k
2026-04-27 13:15:04 +05:30
parent d2423a5bb5
commit 3aee54747c
3 changed files with 103 additions and 13 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ class Realtime extends MessagingAdapter
/**
* Action suffixes recognized in channel names. A channel like `documents.create`
* is split into base channel `documents` plus action `create`. Add new actions
* (e.g. `delete`) here to extend support — no other code change is required.
* here to extend support — no other code change is required.
*/
public const SUPPORTED_ACTIONS = ['create', 'update', 'upsert'];
public const SUPPORTED_ACTIONS = ['create', 'update', 'upsert', 'delete'];
/**
* Connection Tree