如何通过 xmpp 开发网络客户端 gtalk
我尝试在我的http服务器中开发一个网络客户端gtalk。我知道我应该做的就是使用strope.js,它可以将xmpp消息发送到xmpp服务器。我不想构建自己的连接到 gtalk xmpp 服务器的 xmpp 服务器。我认为可能不需要构建 xmpp 服务器作为传输。 但是 gtalk xmpp 服务器没有 http 绑定,那么我该怎么做才能将 http 消息发送到 gtalk xmpp 服务器?如果我发送http消息到talk.google.com:5222,它会回复我吗?是否可以在我和 gtalk xmpp 服务器之间建立连接? 我需要你的帮助。谢谢!
I try to develop a web client gtalk in my http server.I know what I should do is just using the strophe.js which could send the xmpp message to xmpp server. I don't want to build my own xmpp server which connect to gtalk xmpp server.I think it may no need to build xmpp server as a transport.
But the gtalk xmpp server has no http-binding,so what should I do to send my http message to gtalk xmpp server? And if I send the http message to talk.google.com:5222,will it reply to me? Is it possible to make the connection between me and gtalk xmpp server?
I need your help.Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Gtalk 服务器不运行 BOSH 连接管理器,因此您必须使用独立的连接管理器,例如 Punjab。
安装并运行 Punjab 后,您可以在 http://localhost:5280/xmpp-httpbind。将您的 Strope 与它一起使用。
Gtalk server does not run a BOSH connection manager, so you would have to use a standalone one, like Punjab, for example.
After installing and running Punjab, you can have a HTTP-Bind at http://localhost:5280/xmpp-httpbind. Use your Strophe with it.