在网页上实现 XMPP Chat 的技巧 - 轻量级
我想询问您对在网站上实施基于网络的“聊天小部件”的意见。
以下是我目前正在做的事情:
- OpenFire(最新 Beta)
- Tigase Messenger XMPP 库 / webclient
- htttp://messenger.tigase.org/
Tigase Messenger 是使用 Google Web Toolkit 编写的。为了满足我的要求做了很多修改......但总的来说它工作正常。
我需要的功能:
- 群聊选项卡
- 群聊名册
- 双击群聊参与者以启动点对点聊天
- (很高兴有)突出显示,消息传入时播放声音
以下是一些屏幕截图,看看它的样子。
https://i.sstatic.net/S9vgL.jpg
现在,我的这里是我遇到的问题
首先,它加载速度非常慢。也许都是 javascript、GWT,谁知道呢……其次,用 GWT 编写所有内容是很痛苦的。 Web 应用程序的其余部分是 ASP .NET 4.0。在 IIS7 上。对于我来说,使用一种 IDE(和一种语言)进行开发会容易得多,而不是在 Visual Studio 2010 和 Eclipse (Java) 之间切换。
我开始寻找替代方案。经过一番搜索后,我找到了 agsXMPP (htttp://www.ag-software.de/agsxmpp-sdk/)。看起来像一个 asp .NET 库。
真的,我只是想向你们传达我的想法...如果你们处于我的境地,并且想要开发一个(相对)简单的基于 XMPP 的聊天,使用 ASP .NET,支持群聊和点对点 - - 你会怎么做?
任何提示、链接、经验将不胜感激。
谢谢!
-乔什
I want to ask your opinion on implementing a web-based "chat widget" on a website.
Here is how I'm currently doing it:
- OpenFire (lastest Beta)
- Tigase Messenger XMPP library / webclient
- htttp://messenger.tigase.org/
The Tigase Messenger was written using the Google Web Toolkit. It took a LOT of modification meet my requirements... but overall it's working OK.
Features that I need:
- groupchat tabs
- group chat roster
- double-click a group chat participant to initiate point-to-point chat
- (nice to have) highlighting, play sound when message comes in
Here are some screenshots to see what it looks like.
https://i.sstatic.net/S9vgL.jpg
Now, my here are the problems I have with this
First off, it loads slow as anything. Maybe it's all the javascript, GWT, who knows... secondly, it's a pain writing everything in GWT. The rest of the webapp is ASP .NET 4.0. on IIS7. It would be a lot easier on me developing in one IDE (and one language), instead of switching my brain between Visual Studio 2010 and Eclipse (Java).
I started looking in to alternatives. After some searches here, I found agsXMPP (htttp://www.ag-software.de/agsxmpp-sdk/). Looks like a asp .NET library.
Really, I just wanted to bounce my ideas off you guys... if you were in my shoes, and wanted to develop a (relatively) simple XMPP based chat, using ASP .NET, supporting group chat and point-to-point -- how would YOU go about it?
Any tips, links, experience would be greatly appreciated.
Thanks!
-Josh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Strope 非常酷。还可以获取 Jack 的书,您很快就能上手并运行。
Strophe is pretty cool. Get Jack's book also, and you'll be up and running in no time.