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

Close StreamSource when <turbo-stream-source> disconnects #970

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

seanpdoyle
Copy link
Contributor

Closes hotwired/turbo#969

When a <turbo-stream-source> element is removed, close the connection that is created during connection.

@guillermo
Copy link

I tested it and it works as expected. Thanks!

@KieranHolroyd
Copy link

will no longer work due to #971

Closes [hotwired#969][]

When a `<turbo-stream-source>` element is removed, close the connection
that is created during connection.

[hotwired#969]: hotwired#969
@seanpdoyle
Copy link
Contributor Author

@afcapel @kevinmcconnell I've rebased this to account for the migration from TypeScript. It's ready for review.

@afcapel afcapel merged commit 5c8add9 into hotwired:main Sep 12, 2023
1 check passed
@afcapel
Copy link
Collaborator

afcapel commented Sep 12, 2023

Looks good, thanks @seanpdoyle! 🙏

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

Successfully merging this pull request may close these issues.

Why are WS/SEE not being closed after turbo-stream-source is gone?
4 participants