The HTML 5 websocket API is a modern socket-like communication protocol for the
web. The
websockets package is a native websocket implementation
for R that supports most of the draft IETF protocols in use by web browsers.
The packae implements both a websocket client and R websocket server.
The
websockets package is especially well-suited to interaction between R
and web scripting languages like Javascript. Multiple simultaneous websocket
server and client connections are supported.
The library has few external dependencies and, written mostly in R, is easily
portable. In many cases, websockets may make much more efficient use of
networks than Ajax-like schemes for interacting with clients over web protocls.
Enjoy!