外部 XMPP 组件 - 有人知道教程或开源示例吗?
我想运行 XMPP 服务器 (Openfire) 并注册一个外部组件来处理它的消息将收到(使用 Whack 库)。外部组件将运行我的游戏逻辑,我将使用 XMPP 将玩家移动发送到服务器,并在另一个方向发送状态更新。 XMPP 的好处是我们可以免费内置聊天功能。
问题是,虽然 Ignite 看起来相当成熟,但我找不到关于如何编写、注册和调试用 Whack 编写的外部 XMPP 组件的教程,一般来说,这方面的教程很少。
我没有投资于服务器实现或外部组件库,java 只是我选择的语言。如果我要转向 Erlang 或 Scala 或其他语言,那么该语言必须非常简单。
一个教程或示例就足够了,我只需要一个基本的外部 XMPP 组件!
亲切的问候,
加文
I want to run an XMPP server (Openfire) and register an external component to handle the messages it will recieve (using the Whack library). The external component will run my game logic and I will be using XMPP to send player moves to the server and status updates in the other direction. The bonus with XMPP is that we get built in chat for free.
The trouble is, although Ignite look fairly established, I can't find a tutorial on how to write, register and debug an External XMPP component written with Whack, there are very few in general for that matter.
I am not invested in either the server implementation or the External Component library, java is just my language of choice. If I was to move to Erlang or Scala or something it would have to be a very simple in that language.
A single tutorial or example would go a long way here, I just need an basic External XMPP component pretty please!
Kind regards,
Gavin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这个 教程 解释了如何使用 Whack 来实现外部组件图书馆。
I found this tutorial which explains how an external component can be implemented using the Whack library.
有一些相关 XMPP 库的示例/教程,例如 Tinder 和 Smack 您可能会发现有用。
或者,以一种相当不同的方式,您可以决定与协议无关并使用 IMified 的 API ,其中它们托管“聊天机器人”(事实上),该机器人与以任何语言/框架/任何您喜欢的语言构建的简单的基于 HTTP 的响应服务器连接。 (他们比我解释得更好。)
There are a few examples/tutorials for related XMPP libraries like Tinder and Smack which you may find useful.
Or, in a rather different vein, you could decide to be protocol-agnostic and use IMified's API, in which they host the "chatbot" (as it were) which connects with your simple HTTP-based response server built in whatever language/framework/whatever you prefer. (They do a lot better explaining it than I do.)