-
Notifications
You must be signed in to change notification settings - Fork 566
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
websocket server send text error 1002 #7986
Comments
@baichangda Seems like you're not showing the call to |
@spericas there is call stack image |
@baichangda I'm not able to reproduce your problem using Helidon 4.0.0 and Chrome 119.0.6045.123. Please find a simple WS app attached that you can build and run as a server. For the client part, I'm just pasting some JavaScript code into the browser's console:
The server and client outputs are all as expected, without any errors. Have your tried other clients? Perhaps you can use this simple app and modify it to reproduce the issue. |
@spericas |
Issue has been fixed, will be available in release 4.0.1. |
Environment Details
implementation group: 'io.helidon.webserver', name: 'helidon-webserver', version: '4.0.0'
implementation group: 'io.helidon.webserver', name: 'helidon-webserver-static-content', version: '4.0.0'
implementation group: 'io.helidon.webserver', name: 'helidon-webserver-websocket', version: '4.0.0'
Problem Description
helidon se websocket server send text to client in onOpen function produce client error 1002
Steps to reproduce
websocket server code like this
webcoekt client code like this
1、js websocket connect to helidon websocket server succeed
2、in onOpen(...) callback send msg to client、send function is 'WsSession send(String text, boolean last)'
3、then js websocket client error
The text was updated successfully, but these errors were encountered: