code: func Encode(t MessageType, msg interface{}) ([]byte, error) {
  	var buf bytes.Buffer
  	buf.WriteByte(uint8(t))
  	err := codec.NewEncoder(&buf, msgpackHandle).Encode(msg)
  	return buf.Bytes(), err
  }
docs: // Encode is used to encode a MsgPack object with type prefix