开发者

How to create a simple browser-based IRC client?

I want to implement a chat service on my开发者_运维百科 site, and wonder how to create a simple browser-based IRC client from scratch?

I have a linux box and can install whatever I want on it. Google finds tutors on how to setup an IRC server but no instructions on how to create an IRC client.

(As client languages, I can use JavaScript or Flash.)


As you are already familiar with JavaScript, I would recommend a combination of Node.js, Now.js and node-irc.

Node.js is an application that enables you to run JavaScript server-side and to develop web-applications very fast.

Now.js is a library for Node.js that enables you to RPC between client and server. You can just call a function on the server from your client application and vice-versa; their developers guide is in fact a web chat ;)

node-irc is also a library for node.js that enables you to easily create an IRC client.

Combine these three and you get a very nice, very easy self-coded web chat. For the browser interface, there are many possibilities, including application frameworks like ExtJS, JQueryUI, KendoUI or something easier.


  • http://www.lightirc.com/
  • http://wdmedia.org/WFIC/index-en.html#sectiondescription
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜