nowjs for Node - Directly call remote functions in Javascript

NowJS是一款用于Node.js的应用程序,它允许开发者直接从服务器调用客户端的JavaScript函数,反之亦然,从而实现了简易的双向推送功能。通过Socket.io进行通信,无需额外配置。NowJS兼容现有的客户端和服务端框架,消除了对AJAX的需求,提供了跨域支持,并且支持多个平台和浏览器。此外,NowJS还具备群组功能,方便将用户划分到不同的房间或频道。

nowjs for Node - Directly call remote functions in Javascript

Server push

You can call easily client functions from the server and server functions from the client. That means you can push to the client simply by calling a client-side Javascript function on the server. Communication is achieved using Socket.io

No configuration

There's nothing to configure, really. You pass in the port you want NowJS to run on, or a http server object and you're good to go. On the client side, simply include
<script src="http://yourserver/NowJS/now.js"></script>
and the correct server/port will be included automatically

Compatible with frameworks

NowJS doesn't take over anything. You can use it with existing frameworks for both client Javascript and Node.js

No more AJAX

Never deal with XHR, routing, and serialization/parsing. NowJS takes care of that. Just call the function on the server.

Cross-domain support

You can use NowJS to communication cross-domain, push and pull, so throw out your XHR.

Cross browser and platform

NowJS v0.5 is supported in Chrome, Opera, Safari, Firefox, iPad/iPhone/iPod Touch, Android, webOS, Internet Explorer 9, and has beta support for IE8/7/6

Groups, aka 'rooms' or 'channels'

Using the `groups` feature, NowJS allows you to easily group clients into one or multiple groups. This allow you to address a subset of `everyone` via function calls. Checkout the multiroom chat example.

Coming soon: Distributed NowJS

Single threaded NowJS can handle up to 6500 concurrent users on the chatroom example
For customers that are looking for even greater scalability and reliability, we'll soon be licensing a distributed version of NowJS currently under development. Contact us at sales@nowjs.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值