Skip to content

Update recipes.mdx abruptly closed example#664

Open
loucadufault wants to merge 1 commit intoenisdenjo:masterfrom
loucadufault:patch-1
Open

Update recipes.mdx abruptly closed example#664
loucadufault wants to merge 1 commit intoenisdenjo:masterfrom
loucadufault:patch-1

Conversation

@loucadufault
Copy link

the client can reconnect even if the close code is 1000:

graphql-ws/src/client.ts

Lines 827 to 830 in 0c0eb49

// normal closure (possibly all subscriptions have completed)
// if no locks were acquired in the meantime, shouldnt try again
if (isLikeCloseEvent(errOrCloseEvent) && errOrCloseEvent.code === 1000)
return locks > 0;

the client can reconnect even if the close code is 1000
@loucadufault loucadufault changed the title Update recipes.mdx Update recipes.mdx abruptly closed example Jan 7, 2026
Copy link
Owner

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

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

There are some CI issues, please fix the checks. Otherwise looks good, thanks!

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