Hi,
In the future, please don't apply formatting when you're emailing code. Lots of
people will have lots of different mail clients, and it's not always obvious
how the colors will interact or whether they'll be readable against different
backgrounds, or by people with various visual disabiliti
Of course after I ask my question I find the answer on my own.
It's always like this.
The solution is to change
type MessageRequest struct {
Typestring `json:"type"`
Payload json.RawMessage `json:"payload"`
}
So the payload isn't unmarshalled.
Now, after the MessageRequest i