Question

I'm trying to use XMPP to connect with MSN with js.

When I try to connect to "messenger.live.com" I send

<body rid='2126688061' xmlns='http://jabber.org/protocol/httpbind' to='messenger.live.com' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>

and I get

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
    <stream:error xmlns:stream="http://etherx.jabber.org/streams">
        <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
    </stream:error>
</body>

I do not understand why no alternative host is offered?

Was it helpful?

Solution

This is Microsofts way of load balancing :( After connecting the stream they redirect you to another host. You have to close the existing stream and initiate another stream to the given host.
I always have seen there another host. Can you get more logs from your BOSH proxy with the RAW data?
Does your BOSH proxy support this redirection feature?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top