Subject: MessageType... can I add more?
Hi, this is my first post on this forum.
The agsXMPP library is excellent - I have just written my own (bot) client using these libraries and it works great!
My question is related to the types of messages that can be sent / received.
The enum MessageType provides normal, error, chat, groupchat and headline.
Is it possible to add new types, or are these fixed within the XMPP xml schema?
The reason I ask is because I am writing a simple game and I want to be able to send through structured xml to the client (not just chat data).
I can always embed the xml within the chat body but that seems a bit ummm not so right. Ideally I would like to add a new type, that only my clients would recognise and process.
Thanks for your help,
Daniel
The agsXMPP library is excellent - I have just written my own (bot) client using these libraries and it works great!
My question is related to the types of messages that can be sent / received.
The enum MessageType provides normal, error, chat, groupchat and headline.
Is it possible to add new types, or are these fixed within the XMPP xml schema?
The reason I ask is because I am writing a simple game and I want to be able to send through structured xml to the client (not just chat data).
I can always embed the xml within the chat body but that seems a bit ummm not so right. Ideally I would like to add a new type, that only my clients would recognise and process.
Thanks for your help,
Daniel
VTXMaster
Show profile
Link to this post