希望开发适用于HTML5的聊天服务器?技术可用吗? [英] Looking to develop chat server that works in HTML5? Technology available?

查看:131
本文介绍了希望开发适用于HTML5的聊天服务器?技术可用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时是AIM的忠实粉丝和现场聊天/好友列表。随着HTML5的兴起及其在现代浏览器中的使用越来越普遍,我想开发一个HTML5消息传递系统。

I was a big fan of AIM and live chat/buddy lists back in the day. With the rise of HTML5 and its use becoming more common in modern browsers, I'd like to develop an HTML5 messaging system.

我需要查看哪些技术?一开始,我不会关心设计(CSS),只关心功能。

What technologies do I have to look up? At the start, I won't care about the design (CSS), just functionality.

我很可能在MySQL数据库中有标准注册和存储用户。
此外,朋友也可以轻松存储在数据库中,根据用户身份标记为朋友的用户ID填充用户的好友列表。

I'll most likely have a standard registration and store users in a MySQL Database. Additionally, "friends" will also easily be stored in a database, populating a user's buddy list based on which user ID's he/she has marked as "friend".

实际的服务器和客户端连接是我最感兴趣的。这项技术是否适用于HTML5?指出我正确的方向,我会很高兴!

The actual server and client connectivity is what most interests me. Is this technology available for HTML5 yet? Point me in the right direction and I'll be good to go!

推荐答案

对于聊天,你可能想看看进入Websockets(当你谈到HTML5时)。

For the chat, you would probably like to look in to Websockets (as you talk about HTML5).

还有像这个的例子,其中NodeJS是用过的。要使用节点,您必须运行节点服务器。有关示例和更多信息: nodejs.org

There are also examples like this where NodeJS is used. To use node, you would have to run a node-server. For examples and more info: nodejs.org

这篇关于希望开发适用于HTML5的聊天服务器?技术可用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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