Learn R Programming

websockets (version 1.1.7)

websockets-package: R/Websockets Interface

Description

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

Arguments

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.

References

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

Examples

Run this code
# NOT RUN {
# Run the demos to see a few examples:
# demo(package='websockets')
# }

Run the code above in your browser using DataLab