Skip to content
This repository was archived by the owner on Oct 15, 2026. It is now read-only.

WIP: Stream reconnect should have input (request) args too - #45

Draft
VojtechVitek wants to merge 1 commit into
masterfrom
wip_reconnect_args
Draft

VojtechVitek wants to merge 1 commit into
masterfrom
wip_reconnect_args

Conversation

@VojtechVitek

@VojtechVitek VojtechVitek commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

I just found this in my local git. Unfinished draft. @AlexanderKolberg do you mind taking a look?

I think the idea was that webrpc stream .reconnect() function should accept request arguments. This is important for any reconnection logic, where you can keep the number of last received "event" ID in state. And then reconnect with it.

A pseudo-code:

let lastEventId = 100;

api.SubscribeStream( { lastEventId } ) // id == 100

// receive 100 messages

onError() -> reconnect( { lastEventId} ) // id == 200

@VojtechVitek
VojtechVitek marked this pull request as draft October 24, 2025 11:22
@VojtechVitek VojtechVitek changed the title WIP: Stream reconnect should have args too WIP: Stream reconnect should have input (request) args too Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants