Comments (8)
The socket hung up (connection terminated). We may need to catch that from the SSL layer.
from xmpp.js.
I'm using prosody... Erro in prosody is: invalid-namespace, closing session.
from xmpp.js.
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.
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.
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.
Is what I said possible? Use node-xmpp between socket.io and a xmpp server? to controll more then 300 connections?
from xmpp.js.
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.
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)
- Stuck on open stage does not goes to "online" state
- Stream-management ack for websocket connection in react native.
- Error: notarget No matching version found for @xmpp/debug@^0.13.1.
- in react-native app,use xmppClient.stop() api, will report errors
- An example of using websocket and jwt
- Need to evaluate the library for use with React Native based app
- SASL negotiation fails if 'mechanisms' contains boundary white spaces HOT 2
- How to implement this function
- Calling 'stop()' sometimes leads to the client being 'disconnected' HOT 3
- bad-namespace-prefix HOT 2
- Uncaught Error: Module "crypto" has been externalized for browser compatibility. Cannot access "crypto.randomBytes" in client code. HOT 3
- Node JS crash: Uncaught exception "Connection is closing" HOT 1
- Cannot read properties of null (reading 'once') in 'promise.js'
- is their any way to get online users list
- Getting not-authorized error when using valid user with ejabberd HOT 1
- video calls HOT 1
- Error: WebSocket is not open: readyState 2 (CLOSING)
- Does not reconnect when disconnect isn't clean HOT 6
- Does xmpp.js support SASL EXTERNAL auth?
- in band registration Not working using node-xmpp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmpp.js.