grav icon indicating copy to clipboard operation
grav copied to clipboard

Add MsgData interface for easy message creation

Open cohix opened this issue 4 years ago • 0 comments

Having a MsgData interface would make it easier to create/send messages in one step, for example:

type MsgData interface {
    Data() []byte
    MsgType() string
}

Could then allow something like:

pod.SendData(structThatImplementsMsgData)

cohix avatar Dec 23 '20 16:12 cohix