Versions in this module Expand all Collapse all v1 v1.5.1 Oct 23, 2023 Changes in this version + const HandShake + const HandShakeResponse v1.5.0 Sep 11, 2023 v1.4.0 Aug 12, 2023 Changes in this version type Enter + Buvid string v1.3.1 Jul 9, 2023 v1.3.0 Sep 11, 2022 Changes in this version + const Brotli + const HeartBeat + const HeartBeatResponse + const Notification + const Plain + const Popularity + const RoomEnter + const RoomEnterResponse + const Zlib + func EncodePacket(packet Packet) []byte + func NewEnterPacket(uid int, roomID int, key string) []byte + func NewHeartBeatPacket() []byte + type Enter struct + ClientVer string + Key string + Platform string + ProtoVer int + RoomID int + Type int + UID int + type Packet struct + Body []byte + HeaderLength int + Operation uint32 + PacketLength int + ProtocolVersion uint16 + SequenceID int + func DecodePacket(data []byte) Packet + func NewPacket(protocolVersion uint16, operation uint32, body []byte) Packet + func NewPacketFromBytes(data []byte) Packet + func NewPlainPacket(operation int, body []byte) Packet + func Slice(data []byte) []Packet + func (p *Packet) Build() []byte + func (p *Packet) Unmarshal(v interface{}) error + func (p Packet) Parse() []Packet