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
Connect the action$ steam over sockets with the backend
Proof of Concept
In one of my applications, I tried to send the Redux action$ stream directly to the backend via a socket. The responses from the backend are in turn written directly back into the stream as an action. To trigger the dispatch function of redux I wrote an epic for success and failure actions which merge the actions directly to the action$ steam again. ( to trigger dispatch ).
Problem
To minimalize the boilerplate I wanted to reduce the amount of code using an backend$ steam combined with an action$ steam as input for react-observable. So I created a websocket connection to the backend with rxjs/webSocket and wanted to use it as an action$ steam. But there is no way to change the action$ steam. I changed the createEpicMiddleware options in my project to provide an action$ steam property like dependencies on creation.
Improvement
Please provide action$ property like dependencies while creating createEpicMiddleware to make it more flexible while working with steams.
Example
While spending more or less time with my family on Christmas I created this proof of concept which shows the problem.
The text was updated successfully, but these errors were encountered:
Connect the action$ steam over sockets with the backend
Proof of Concept
In one of my applications, I tried to send the Redux action$ stream directly to the backend via a socket. The responses from the backend are in turn written directly back into the stream as an action. To trigger the dispatch function of redux I wrote an epic for success and failure actions which merge the actions directly to the action$ steam again. ( to trigger dispatch ).
Problem
To minimalize the boilerplate I wanted to reduce the amount of code using an backend$ steam combined with an action$ steam as input for react-observable. So I created a websocket connection to the backend with rxjs/webSocket and wanted to use it as an action$ steam. But there is no way to change the action$ steam. I changed the createEpicMiddleware options in my project to provide an action$ steam property like dependencies on creation.
Improvement
Please provide action$ property like dependencies while creating createEpicMiddleware to make it more flexible while working with steams.
Example
While spending more or less time with my family on Christmas I created this proof of concept which shows the problem.
The text was updated successfully, but these errors were encountered: