Interface WebSocketSafeTypeDecoder<R>

Type Parameters:
R - The result type produced after decoding the WebSocket Frame.
All Superinterfaces:
Codec<R,Frame>, Decoder<R,Frame>

@Experimental public interface WebSocketSafeTypeDecoder<R> extends Decoder<R,Frame>
A specialized Decoder for safely decoding Frame objects into a target type.

This interface is intended for use with WebSocket based communication, where incoming frames need to be deserialized or interpreted into higher-level objects while ensuring type safety.

Since:
3.5.0
  • Method Summary

    Methods inherited from interface de.craftsblock.craftsnet.api.codec.Decoder

    decode