-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#214] Drop alpha
:chsk/ws-error
event, move functionality to `:chs…
…k/state` Specifically: a channel socket's state atom may now contain keys: :last-ws-error {:uuid _ :ev _ <...>} :last-ws-close {:uuid _ :ev _ <...>} So interested consumers can either watch the state atom for changes, or check the content of `[:chsk/state [<old-state-map> <new-state-map>]]` events. This approach should be fundamentally more flexible, and it has the added benefit of not needing to introduce any new `:chsk/_` event ids. Feedback welcome!
- Loading branch information
1 parent
92f25ca
commit 9a7e172
Showing
1 changed file
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters