Package io.quarkus.websockets.next
Interface BinaryMessageCodec<T>
- Type Parameters:
T-
- All Superinterfaces:
MessageCodec<T,io.vertx.core.buffer.Buffer>
Used to encode and decode binary messages.
Special types of messages
Some types of messages bypass the encoding/decoding process:io.vertx.core.buffer.Buffer,byte[],java.lang.String,io.vertx.core.json.JsonObject.io.vertx.core.json.JsonArray.
OnBinaryMessage.
CDI beans
Implementation classes must be CDI beans. Qualifiers are ignored.Dependent beans are
reused during encoding/decoding.
Lifecycle and concurrency
Codecs are shared accross all WebSocket connections. Therefore, implementations should be either stateless or thread-safe.- See Also:
-
Method Summary
Methods inherited from interface io.quarkus.websockets.next.MessageCodec
decode, encode, supports