You are right. I will write some tests.
What I mean is that for example when server receive presence stanza, it
must route it to every subscribed user. Then for example there is
difference between routing message of type 'chat' and 'headline'. Are
these differences in routing allready implemented?
Bernd Fondermann wrote / napĂsal(a):
Matus Zamborsky wrote:
I read rfc 3920 and 3921 and I understand the routing behind presence,
messages and iqs. I also read the code of StanzaRelay and
StanzaReceiver, but I could not find the difference between routing
presence, messages and iqs. Is there something I dont see, or this part
of Vysper is not fully written?
Routing is mostly done based on a stanza's "to"-attribute. Stanza
handling is mostly done StanzaHandlers. The specific case of processing
a stanza which is going to be relayed to another server (e.g. "routed
through") by a Handler is currently not there I think.
What is your specific use case?
I probably would suggest to build a test app for this instead of only
reading source code.
Bernd