package message // keep-alive: type Keepalive struct{} func (k *Keepalive) Encode() []byte { return []byte{0, 0, 0, 0} } func (k *Keepalive) Decode(buf []byte) Serialize { return &Keepalive{} }