rpc-duplex-node
Simple rpc for node/express. Uses websocket if browser supported, else polling.
Like this..
app.js
var express = app = ; var server = server; var allin = app; allinlog = consolelog; // Send some calls to the clients using clientcall() { allin } ; app
index.html
<!-- include the script -->
<script src='/rpc'></script>
<div id='timeis'/>