Class WebSocketUpgradeHandlerFactory
java.lang.Object
io.micronaut.http.server.netty.websocket.WebSocketUpgradeHandlerFactory
@Requires(classes=WebSocketBeanRegistry.class)
@Singleton
@Internal
public final class WebSocketUpgradeHandlerFactory
extends Object
Creates the inbound handler for websocket upgrade requests.
- Since:
- 4.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionWebSocketUpgradeHandlerFactory
(ConversionService conversionService, NettyHttpServerConfiguration serverConfiguration) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(NettyEmbeddedServer embeddedServer, NettyEmbeddedServices nettyEmbeddedServices) Creates the websocket upgrade inbound handler.
-
Constructor Details
-
WebSocketUpgradeHandlerFactory
public WebSocketUpgradeHandlerFactory(ConversionService conversionService, NettyHttpServerConfiguration serverConfiguration)
-
-
Method Details
-
create
public NettyServerWebSocketUpgradeHandler create(NettyEmbeddedServer embeddedServer, NettyEmbeddedServices nettyEmbeddedServices) Creates the websocket upgrade inbound handler.- Parameters:
embeddedServer
- The servernettyEmbeddedServices
- The services- Returns:
- The handler
-