Skip to content

Fix: WsEvent::Closed is correctly sent on web when socket is closed.#6

Merged
emilk merged 6 commits into
rerun-io:mainfrom
vincev:main
Nov 21, 2022
Merged

Fix: WsEvent::Closed is correctly sent on web when socket is closed.#6
emilk merged 6 commits into
rerun-io:mainfrom
vincev:main

Conversation

@vincev
Copy link
Copy Markdown
Contributor

@vincev vincev commented Nov 16, 2022

I have noticed that when a Websocket server closes the connection the client wasn't getting a close notification, this PR adds a close callback so that the event is propagated to the UI:

CloseNotify

Copy link
Copy Markdown
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Great - thanks!

@emilk
Copy link
Copy Markdown
Member

emilk commented Nov 21, 2022

I'm updating to 1.65 to fix the CI issues: #7

@emilk
Copy link
Copy Markdown
Member

emilk commented Nov 21, 2022

Try merging in main

@emilk
Copy link
Copy Markdown
Member

emilk commented Nov 21, 2022

Please add a line to CHANGELOG.md btw!

@vincev
Copy link
Copy Markdown
Contributor Author

vincev commented Nov 21, 2022

Please add a line to CHANGELOG.md btw!

I have updated CHANGELOG.md and the version, I wasn't sure if I needed to add that under Unreleased, I can update it if that is your preference.

@emilk
Copy link
Copy Markdown
Member

emilk commented Nov 21, 2022

It should go under Unreleased, because it is unreleased :)

Comment thread CHANGELOG.md Outdated
Comment thread ewebsock/Cargo.toml Outdated
@emilk emilk changed the title Add close notification to Web implementation. Fix: WsEvent::Closed is correctly sent on web when socket is closed. Nov 21, 2022
@emilk emilk merged commit b6a0617 into rerun-io:main Nov 21, 2022
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