@Singleton public class WebSocketMessageEncoder extends Object
Constructor and Description |
---|
WebSocketMessageEncoder(MediaTypeCodecRegistry codecRegistry) |
Modifier and Type | Method and Description |
---|---|
io.netty.handler.codec.http.websocketx.WebSocketFrame |
encodeMessage(Object message,
MediaType mediaType)
Encode the given message with the given media type.
|
public WebSocketMessageEncoder(MediaTypeCodecRegistry codecRegistry)
codecRegistry
- The codec registry