Files
mostlymatter/server/public/model
Harrison Healey ef66f7beab MM-54238 Add WebSocket broadcast hook and don't broadcast when other users were mentioned (#24641)
* MM-54238 Initial implementation

* MM-54238 Move websocket hook into app package

* MM-54238 Add tests for mentions in posted websocket messages

* Fix styling

* Fix other styling

* Idiomatic ID naming for new code

* Fix more styles

* Separate hooks to add mentions and followers

* Improved error handling for invalid types in hooks

* Rename HasChanges to ShouldProcess

* Pass broadcast hooks through hubStart

* Add test helper for asserting json unmarshaling

* Fix missing arguments in tests

* Ensure broadcast hooks are sent across the cluster and not to users

* Ensure tests actually cover following a post

* Fix code broken by merge

* Go vet again...

* Deep copy event before processing it with hooks

* Replace RemoveBroadcastHooks with WithoutBroadcastHooks

* Address feedback

* Add helper to fix type information for hook args

* Wrap WebSocketEvent and simplify BroadcastHook

* Address feedback

* Address feedback
2023-11-08 16:17:07 -05:00
..
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-12 09:47:35 +05:30
2023-10-12 09:47:35 +05:30
2023-10-11 10:13:36 +02:00
2023-10-12 09:47:35 +05:30
2023-11-01 12:57:13 +01:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-09-19 15:29:57 +02:00
2023-10-11 10:13:36 +02:00
2023-10-12 09:47:35 +05:30
2023-10-12 09:47:35 +05:30
2023-10-11 10:13:36 +02:00
2023-10-12 09:47:35 +05:30
2023-11-02 15:52:23 +01:00