Skip to content

Fix #1340 fix socket subscription#1947

Open
Ghirtor wants to merge 1 commit intoreduxjs:mainfrom
Ghirtor:issue-1340/fix-socket-subscription
Open

Fix #1340 fix socket subscription#1947
Ghirtor wants to merge 1 commit intoreduxjs:mainfrom
Ghirtor:issue-1340/fix-socket-subscription

Conversation

@Ghirtor
Copy link
Copy Markdown

@Ghirtor Ghirtor commented Oct 29, 2025

This PR fixes issue #1340

Added missing subscription to socket id so that it is possible when using remote devtools to use commit, reset, revert,... functionalities.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: c724dfa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

for await (const data of this.socket!.subscribe(channelName)) {
this.handleMessages(data as Message<S, A>);
}
for await (const data of this.socket!.subscribe('sc-' + this.socket!.id)) {
Copy link
Copy Markdown

@dacevedo12 dacevedo12 Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this ever run as is? I got the fix working only by allowinig both to run concurrently

void (async () => {
  for await (...)
})();

void (async () => {
  for await (...)
})();

this.isMonitored = false;
if (!this.socket) return;
void this.socket.unsubscribe(this.channel!);
this.socket.closeChannel(this.channel!);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we close the sc channel here aswell?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants