Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stream reconnection #322

Open
rohiievych opened this issue Jul 13, 2022 · 0 comments
Open

Add stream reconnection #322

rohiievych opened this issue Jul 13, 2022 · 0 comments

Comments

@rohiievych
Copy link
Member

The task

If websocket connection is interrupted, there is no way to continue the stream. Thus, we have to implement stream reconnection.

How to implement

  1. Handle stream interruption by remembering streamId and last binary packet sent/received on both sides: server and client.
  2. Retry stream continuation requests from server to client and vice versa with interval of 1 second.
  3. Find the next packet in stream or initialize new one and skip using saved streamId and binary packet.
  4. Continue streaming.

Create a PR to branch streams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants