R Websockets Package
Note: Active development and maintenance of the R websockets package has been transferred
to Joe Cheng at RStudio. All the links below have been updated
Visit RStudio at http://rstudio.org.
Get the R package from CRAN here:
Get the development code here:
A talk I gave on websockets at JSM is available here:
The reference vignette is available here:
Here is a silly cool R "chat" script using websockets (many web clients can share
a super basic R session):
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.
package is especially well-suited to interaction between R
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.