简体   繁体   English

如何创建Node.js XMPP服务器和Android XMPP客户端

[英]how to create nodejs xmpp server and android xmpp client

I want to add chat module to android app. 我想向Android应用添加聊天模块。 Firstly I want to use XMPP using Nodejs. 首先,我想通过Nodejs使用XMPP。 How nodejs xmpp server works with android client. nodejs xmpp服务器如何与android客户端一起使用。

Can nodejs xmpp server can communicate with android app? NodeJS XMPP服务器可以与Android应用程序通信吗? if yes than, how can i create simple nodejs xmpp server and simple android app that both can communicate. 如果是的话,我如何创建可以通信的简单的nodejs xmpp服务器和简单的android应用程序。

If you have any other solution please let me know. 如果您还有其他解决方案,请告诉我。

I am tried socket.io but i dont want to use that. 我尝试过socket.io,但我不想使用它。 It is not worked stable on android client side. 它在android客户端上不稳定。 Some messages send some not send. 有些消息发送不发送。 I am used few solutions for solve this problem (ping pong, heartbeath, change java client libraries for socket io, ...). 我用很少的解决方案来解决这个问题(乒乓球,心跳,更改套接字io的Java客户端库等)。 But nothing changed. 但是什么都没有改变。

My aim is to create stable fast chat module to android and ios application using with nodejs server. 我的目标是使用nodejs服务器为Android和ios应用程序创建稳定的快速聊天模块。

Please guide me, thank you in advance. 请指导我,谢谢。

Have you tried checking other solutions like ConnectyCube, Firebase, Layer, etc.? 您是否尝试过检查其他解决方案,例如ConnectyCube,Firebase,Layer等?

They provide a ready backend and all you need to care about is configuring your client-side app. 他们提供了现成的后端,您需要关心的就是配置客户端应用程序。

Some of them even have ready Android client-side libraries which can be integrated in your app and speed up the development. 其中一些甚至具有现成的Android客户端库,可以将其集成到您的应用程序中并加快开发速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM