websockets-package: R/Websockets Interface

Description Details Author(s) References Examples

Description

The websockets package is a native HTML 5 WebSocket implementation for R supporting most IETF draft protocols.

Details

The R/Websockets interface provides exposes the basic HTML 5 Websocket API to the R language. It lets R directly interact with web pages without going through server middleware layers.

The basic procedure for initializing the R/Websockets interface is:

  1. Load the library.

  2. Initialize with create_server.

  3. Define desired callback functions to respond to events with setCallback.

  4. Service events with service.

Author(s)

B. W. Lewis <blewis@illposed.net> Maintainer: B. W. Lewis <blewis@illposed.net>

References

http://dev.w3.org/html5/websockets/

Examples

1
2
# Run the demos to see a few examples:
# demo(package='websockets')

rstudio/R-Websockets documentation built on May 28, 2019, 4:33 a.m.