Class WebSocketMessageEncoder
java.lang.Object
io.micronaut.http.netty.websocket.WebSocketMessageEncoder
@Requires(classes=WebSocketSessionException.class)
@Singleton
public class WebSocketMessageEncoder
extends Object
Encapsulate functionality to encode WebSocket messages.
- Since:
- 1.0
- Author:
- sdelamo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.codec.http.websocketx.WebSocketFrame
encodeMessage
(Object message, MediaType mediaType) Encode the given message with the given media type.
-
Constructor Details
-
WebSocketMessageEncoder
- Parameters:
codecRegistry
- The codec registry
-
-
Method Details