Versions in this module Expand all Collapse all v1 v1.3.1 Jul 3, 2023 v1.1.1 Sep 2, 2023 v1.1.0 Sep 2, 2023 v1.0.2 Aug 11, 2023 v1.0.1 Jul 4, 2023 Changes in this version type Enter + Buvid string v1.0.0 Jul 3, 2023 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