You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 4327900 commit i removed option to automatically intercept meta: { websocket: true} tagged actions.
I kinda liked and still like this approach as it requires just to tag relative actions, but at the same time it's somewhat limits the signature of the action signature which is sent to the server.
Also by implementing webSocketSend() action it opens doors for more fine grained control. Not sure is it good or not.. will see.
Other awkward point is that webSocketSend() expects explicit signature. But there are actions with type only, there could be an actions with type and payload as well. And probably there could be more variations.
Mby i need to implement like strict action kind policy. Like "event actions" which contains only the type field. And "command actions" which should contain type and payload fields. Not sure.
Will try to research this point. For now - it is as it is.
The text was updated successfully, but these errors were encountered:
meta: { websocket: true} approach would allow to do something like this meta: { websocket: true, host: "wss://public.api.domain.com"}. I mean, it could be possible to specify to which host this action should go. But it has it's own downsides by cluttering the codebase with host addresses there and there.
In 4327900 commit i removed option to automatically intercept
meta: { websocket: true}
tagged actions.I kinda liked and still like this approach as it requires just to tag relative actions, but at the same time it's somewhat limits the signature of the action signature which is sent to the server.
Also by implementing
webSocketSend()
action it opens doors for more fine grained control. Not sure is it good or not.. will see.Other awkward point is that webSocketSend() expects explicit signature. But there are actions with
type
only, there could be an actions withtype
andpayload
as well. And probably there could be more variations.Mby i need to implement like strict action kind policy. Like "event actions" which contains only the
type
field. And "command actions" which should containtype
andpayload
fields. Not sure.Will try to research this point. For now - it is as it is.
The text was updated successfully, but these errors were encountered: