I'm tyring few things with asmack (obtained from https://github.com/Flowdalic/asmack ) & google service. I tried to send multiple packets(in the form of chat messages) to my gtalk using service "gmail.com", but i'm receiving the messages in out of order..
Below is the code for sending 15 packets ('chat messages') in a row
String to = "[email protected]" // eg: gtalk ID
for(int i =1;i<15;i++){
Message msg = new Message(to, Message.Type.chat);
msg.setBody(i+"");
connection.sendPacket(msg);
}
Here is wat i'm getting on gtalk when runned twice..
I'm i doing something wrong .. can any one help me out here ?
Thanks in advance