We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Connection: keep-alive, websocket
The upgrade header must contain: Upgrade: websocket Connection: Upgrade
// ArmeriaConfig.kt @Configuration class ArmeriaConfig { @Bean fun armeriaServerConfigurator( grpcServiceBuilder: GrpcServiceBuilder, webSocketServiceBuilder: WebSocketServiceBuilder, healthCheckService: HealthCheckService, webProperties: WebProperties ): ArmeriaServerConfigurator = ArmeriaServerConfigurator { serverBuilder -> serverBuilder .service( grpcServiceBuilder .build(), ) .serviceUnder( "/ws", webSocketServiceBuilder.build() ) }
$ curl --request GET \ --url http://localhost:8080/ws/test \ --header 'Host: <Host>' \ --header 'Origin: http://localhost:8080' \ --header 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits' \ --header 'Sec-WebSocket-Key: <Key>' \ --header 'Sec-WebSocket-Version: 13' \ --header 'Upgrade: websocket' \ --header 'Connection: upgrade, websocket'
=> returns 400
$ curl --request GET \ --url http://localhost:8080/ws/test \ --header 'Host: <Host>' \ --header 'Origin: http://localhost:8080' \ --header 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits' \ --header 'Sec-WebSocket-Key: <Key>' \ --header 'Sec-WebSocket-Version: 13' \ --header 'Upgrade: websocket' \ --header 'Connection: upgrade'
=> works properly
The text was updated successfully, but these errors were encountered:
maybeWebSocketUpgrade
Successfully merging a pull request may close this issue.
Error message
Environment
Websocket Handler
Request message
=> returns 400
=> works properly
The text was updated successfully, but these errors were encountered: