使用 strophe js 的基于 Javascript 的 XMPP 聊天客户端 - 示例和教程? [英] Javascript based XMPP chatclient using strophe js - Examples and tutorials?

查看:31
本文介绍了使用 strophe js 的基于 Javascript 的 XMPP 聊天客户端 - 示例和教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个简单的基于 javascript 的 XMPP 客户端.我偶然发现了 'strophe js',它应该让我在 XMPP 方面的生活更轻松,但我发现文档有点......不完整.它有一个关于如何连接/断开连接的示例,但仅此而已.

I want to make a simple javascript-based XMPP client. I stumbled upon 'strophe js', which should make my life easier when it comes to XMPP but I find the documentation a bit.. uncomplete. It has an example on how to connect/disconnect but that's pretty much it.

我需要获取联系人列表、发送和接收消息...我该怎么做?

I need to get a list of contacts, send and receive messages... how do I do this?

实际上:我在哪里可以找到有关如何执行此操作的教程或示例?(不需要在这里写一个完整的 tut :)

Actually: where can I find a tutorial or an example on how to do this? (no need to write a full tut here :)

推荐答案

您可以在下面的工作 github 代码中找到与使用 stropher js for XMPP 协议的聊天相关的要求.

You can find your requirement related to chat using stropher js for XMPP protocol on this below working github code.

https://github.com/metajack/profxmpp

观看第 06 章演示(GAB Tut).

它将满足您的所有相关要求

It will satisfy all your requirement related to

  • 一对一聊天.

  • one to one chat.

花名册(好友列表),

发送好友请求,

即将批准的请求.

开始一对一聊天等...

Start one to one chat etc...

还包括所有重要的演示

让我知道您对本演示有任何疑问.:) :)

Let me know you have any query in this demo. :) :)

这篇关于使用 strophe js 的基于 Javascript 的 XMPP 聊天客户端 - 示例和教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆