node-xmpp

How to use stream management acks in xmpp.js (in react-native) with MongooseIM (as chat server)?

穿精又带淫゛_ 提交于 2019-12-13 18:31:56
问题 I am using xmpp.js as xmpp chat client inside react-native for both android+ios with MongooseIM as chat server. I want to implement stream management acks in the App. But according to the issue#540, xmpp.js doesn't officially support stream management for now. What can be the alternate to this? I need the stream management module only to send/receive acks between c2s and s2s. Please guide. 回答1: Stream Management, if not available in your client library of choice, is somewhat complex to

starttls on node.js > 0.4.0

对着背影说爱祢 提交于 2019-12-11 01:18:31
问题 I came across this thread Node.js HTTPS Secure Error which mentions that the tls module is the way to do TLS on node now. It seems that setSecure() has been dropped. I'm trying to do a STARTTLS for XMPP. This means that the socket will be upgraded midway. How do I go about doing this on node.js > 0.4.0? 回答1: Try this: https://gist.github.com/848444 回答2: Take a close look at the lib/tls.js file in the Node Github repo. https://github.com/joyent/node/blob/master/lib/tls.js#L949-992 Another

GCM XMPP Socket consistently getting EPIPE and disconnected when sending notifications

ぃ、小莉子 提交于 2019-12-07 10:29:37
问题 We have an xmpp connection server that connects sockets to GCM XMPP endpoints and starts sending notifications. One thing We've noticed is upon sending a semi-large notification (say to as little as a 1000 devices), the sockets keep getting suddenly disconnected receiving the following error message: Client disconnected socket=b913-512-904dc69, code=EPIPE, errno=EPIPE, syscall=write For example, this is the log of the live server when starting to send a notification to different registration

Node xmpp messages are not sent to correct destination

戏子无情 提交于 2019-12-02 00:01:14
问题 I'm using node-xmpp server as a chat server for 2 clients:Psi and Spark.I register an account for every client.I want to send from Psi account a message to Spark account.Every time when i send a message from an account the same account receive the message.I want to add friend to my list(i don't know why doesn'w work..probably is not implemented) and to send messages correctly.I'm using node xmpp server/examples/server-and-client.js.Thanks for advices. 回答1: This complete code work pretty well

Fail to install npm package “npm ERR! errno -4048”

烈酒焚心 提交于 2019-11-27 01:18:41
I'm trying to install npm package (node-xmpp-server) but it fail to install. previously when I'm trying to install a package that is install globally instead of locally, but now it's not installing at all. Plz Help me. npm install node-xmpp-server error is: npm ERR! errno -4048 npm ERR! Windows_NT 6.3.9600 npm ERR! argv "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "node-xmpp-server" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! path c:\Users\Jaseem Abbas\Documents\node_modules\node- xmpp-server\examples npm ERR! code EPERM npm ERR

Fail to install npm package “npm ERR! errno -4048”

╄→гoц情女王★ 提交于 2019-11-26 08:15:50
问题 I\'m trying to install npm package (node-xmpp-server) but it fail to install. previously when I\'m trying to install a package that is install globally instead of locally, but now it\'s not installing at all. Plz Help me. npm install node-xmpp-server error is: npm ERR! errno -4048 npm ERR! Windows_NT 6.3.9600 npm ERR! argv \"c:\\Program Files\\nodejs\\node.exe\" \"c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js\" \"install\" \"node-xmpp-server\" npm ERR! node v0.12.4 npm ERR!