首页 \ 问答 \ 聊天(XMPP)消息传递平台(Chat (XMPP) messaging platform)

聊天(XMPP)消息传递平台(Chat (XMPP) messaging platform)

我想为我的用户封装不同的消息传递平台(Google Talk,Facebook Chat) - 当然它将使用XMPP。

我将在C#中编写服务器,在Flex(AIR)中编写客户端。

  • 我是否需要跟踪服务器中的所有消息?
  • 通知用户有关新消息的最佳做法是什么?
    • 轮询?
    • 推? (C#如何与Flex配合使用)

先感谢您...


I would like to encapsulate different messaging platforms (Google Talk, Facebook Chat) for my users - of course it will be using XMPP.

I will be writing the server in C# and the client in Flex (AIR).

  • Do I need to keep track of all the message in the server?
  • What would be the best practice for notifying users about a new message?
    • Polling?
    • Push? (How does C# works with Flex)

Thank you in advance...


原文:https://stackoverflow.com/questions/10789763
更新时间:2024-01-29 08:01

最满意答案

假设您已在文章中插入HTML,您可以执行的是安装Sourcerer ,它允许您向文章添加自定义代码。 安装后,您可以使用以下内容导入CSS文件:

{source}
<?php
    JHtml::_('stylesheet', JUri::root() . 'path/to/your/file.css');
?>
{/source}

或者如果您不想导入文件,您可以像这样插入CSS:

{source}
<style>
    #element {
        /* some code */
    }
</style>
{/source}

如果Sourcerer看起来像是一个非常繁重的插件,你也可以下载DirectPHP,否则你可以开发一个小模块


Assuming you have inserted your HTML in an article, what you can do is install Sourcerer which allows you to add custom code to your articles. Once installed you can use the following to import a CSS file:

{source}
<?php
    JHtml::_('stylesheet', JUri::root() . 'path/to/your/file.css');
?>
{/source}

or if you don't want to import a file, you can just insert the CSS like so:

{source}
<style>
    #element {
        /* some code */
    }
</style>
{/source}

If Sourcerer seem like quite a heavy plugin to use, you can also download DirectPHP else you could developer a small module

相关问答

更多
  • 假设您已在文章中插入HTML,您可以执行的是安装Sourcerer ,它允许您向文章添加自定义代码。 安装后,您可以使用以下内容导入CSS文件: {source} {/source} 或者如果您不想导入文件,您可以像这样插入CSS: {source}