1
Make JID a string type, with receiver functions to get its
2
pieces. This way it can be used as a key in a map.
3
4
Don't force the client to understand the RFCs. Keep message types in a
5
convenient set of constants, for example.