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

fix(useWebSocket): close WebSocket gently #995

Merged
merged 1 commit into from
Dec 1, 2021
Merged

Conversation

Scrum
Copy link
Contributor

@Scrum Scrum commented Dec 1, 2021

Uncaught InvalidAccessError: Failed to execute 'close' on 'WebSocket': The code must be either 1000, or between 3000 and 4999. 0 is neither.

Uncaught InvalidAccessError: Failed to execute 'close' on 'WebSocket': The code must be either 1000, or between 3000 and 4999. 0 is neither.
@antfu antfu changed the title fix: Failed to execute 'close' on 'WebSocket' fix(useWebSocket): close WebSocket gently Dec 1, 2021
@antfu antfu merged commit 161c123 into vueuse:main Dec 1, 2021
@Scrum Scrum deleted the patch-1 branch December 2, 2021 13:24
Scrum added a commit to Scrum/vueuse that referenced this pull request Dec 8, 2021
Set status code as default in method.

Related vueuse#995
Scrum added a commit to Scrum/vueuse that referenced this pull request Jan 12, 2022
The `beforeunload` event is called with the passing of the event parameters instead of code.

Related vueuse#1057 
Related vueuse#1018
Related vueuse#995
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