문제

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?

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top