Skip to content

Using StandardWebSocketClient it's not possible to customize ClientEndpointConfig before it's passed to WebSocketContainer.connectToServer method [SPR-12955] #17547

@spring-projects-issues

Description

@spring-projects-issues

Rostislav Georgiev Georgiev opened SPR-12955 and commented

StandardWebSocketClient in it's doHandshakeInternal method is using ClientEndpointConfig.Builder to initialize ClientEndpointConfig and is passing it directly to WebSocketContainer.connectToServer method.
ClientEndpointConfig has a UserProperties map, which can used to pass additional Container specific configurations. E.g. for example Tomcat WebSocket container will check userProperties for "org.apache.tomcat.websocket.SSL_CONTEXT" to setup SSLEngine.

It would be nice to have a way to supply StandardWebSocketClient with custom UserProperties.


Affects: 4.1.6

Referenced from: commits 222f699

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions