decode

fun decode(payload: ByteBuf, limits: ProtocolLimitsConfig = ProtocolLimitsConfig()): ConnectPacket

Decodes a payload ByteBuf into a ConnectPacket.

The referral source address is not decoded and will be null.