Skip to content

Commit

Permalink
Fixes #981 - WebSocketTransport.Factory does not add WebSocketContain…
Browse files Browse the repository at this point in the history
…er as a bean.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Dec 22, 2020
1 parent b57fb0e commit 3a4d162
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -255,6 +255,10 @@ public void afterResponse(HandshakeResponse hr) {
public static class Factory extends ContainerLifeCycle implements ClientTransport.Factory {
private final WebSocketContainer container = ContainerProvider.getWebSocketContainer();

public Factory() {
addBean(container);
}

@Override
public ClientTransport newClientTransport(String url, Map<String, Object> options) {
ScheduledExecutorService scheduler = (ScheduledExecutorService)options.get(ClientTransport.SCHEDULER_OPTION);
Expand Down

0 comments on commit 3a4d162

Please sign in to comment.