encode

Encode a LobbyMessage to bytes with the PREFIX_BYTE framing prefix.