Skip to content
Discussion options

You must be logged in to vote

Looks like you'll want to implement some kind of realtime connection to the server, either with Server-Sent Events, or Websockets. Before submitting the action, make sure the client is connected to it and instead of setData, trigger the SSE or WS with the data using some kind of event emitter. Then have the client listener grab the data that was sent and call setData.

Remix-utils might come in handy if you go with Server-Sent Events https://github.com/sergiodxa/remix-utils#server-sent-events

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bistaff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants