eriksson / smack-bosh

Library that enables bosh support to smack-3.2.2
6 stars 7 forks source link

n00b question? how to get/set rid, sid, etc.? #3

Closed jfrux closed 11 years ago

jfrux commented 11 years ago

Sorry if this is a no brainer.

I'm thinking I need to add a PacketListener of type SessionID?

jfrux commented 11 years ago

Something like this? blah! :-/

PacketTypeFilter packetTypeFilter = new PacketTypeFilter(Session);
PacketCollector packetCollection = connection.createPacketCollector(packetTypeFilter);
eriksson commented 11 years ago

if you want to manage the sid, take a look into BOSHConnection.java (variable sessionID)