Giter VIP home page Giter VIP logo

Comments (8)

astro avatar astro commented on May 20, 2024

The socket hung up (connection terminated). We may need to catch that from the SSL layer.

from xmpp.js.

maxguzenski avatar maxguzenski commented on May 20, 2024

I'm using prosody... Erro in prosody is: invalid-namespace, closing session.

from xmpp.js.

astro avatar astro commented on May 20, 2024

Now that is interesting. Would you please determine which xmlns declaration is the culprit? Are you perhaps trying to connect a Component to a c2s port or vice versa?

from xmpp.js.

maxguzenski avatar maxguzenski commented on May 20, 2024

So, I'm trying to make a webchat. Normally, a webchat whould connect to prosody using a BOSH. But, I tried to make my webchat using socket.io, and node/socket.io uses node-xmpp to real connect to prosody... it not working ;)

Into development everthing works just fine... but in production, with more then 300 users online, this issue happen all the time (and node server restart).

At production, node-xmpp reconnect all the time as well. (when "reconnect: true" is setted)

I'll try to find more information about this issue.

from xmpp.js.

maxguzenski avatar maxguzenski commented on May 20, 2024

I looked at prosody source, when it call 'cb_error(session, "no-stream");' is where invalid-namespace happen

      if not stanza then --if we are not currently inside a stanza
        if session.notopen then
            if tagname == stream_tag then
                non_streamns_depth = 0;
                if cb_streamopened then
                    cb_streamopened(session, attr);
                end
            else
                -- Garbage before stream?
                cb_error(session, "no-stream");
            end
            return;
        end
        if curr_ns == "jabber:client" and name ~= "iq" and name ~= "presence" and name ~= "message" then
            cb_error(session, "invalid-top-level-element");
        end

        stanza = st.stanza(name, attr);
    else -- we are inside a stanza, so add a tag
        stanza:tag(name, attr);
    end

from xmpp.js.

maxguzenski avatar maxguzenski commented on May 20, 2024

Is what I said possible? Use node-xmpp between socket.io and a xmpp server? to controll more then 300 connections?

from xmpp.js.

astro avatar astro commented on May 20, 2024

Sure, that sounds like a proxy server to me. Take a look at node-xmpp-bosh for example, they do something quite similar.

Did you resolve that invalid-namespace error by now? Can we close this bug?

from xmpp.js.

maxguzenski avatar maxguzenski commented on May 20, 2024

Now, I dont using node-xmpp as a proxy anymore... but I'll try again. For now, we can close this issue. I re open it in future, if necessary.

from xmpp.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.