-
Notifications
You must be signed in to change notification settings - Fork 382
WebSocketChannel close code throws exception #1690
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
Comments
Same problem on version 3.0.1 |
The 1001 - Going Away status is typically reserved for server-side closures. |
same here version 3.0.2 [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Invalid argument: 1001, close code must be 1000 or in the range 3000-4999 how to solve |
For version 3.0.0, when calling close with a status argument, it throws an exception. Only
status.normalClosure
which is 1000 works. The rest of the status code seems like not being mapped into the 3000-4999 range which can cause the exception to be thrown.Code snippet
Exception
The text was updated successfully, but these errors were encountered: