The websockets package is a native HTML 5 WebSocket implementation for R supporting most IETF draft protocols.
WebSockets的包是一个原生的HTML 5 WebSocket的实施为R支持IETF草案协议的。
Details
详细信息----------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.
R / WebSockets的接口提供R语言公开基本的HTML 5 WebSocket的API。它可以让ŕ直接互动的网页,而无需通过服务器中间件层。
The basic procedure for initializing the R/Websockets interface is:
的R / WebSockets的接口初始化的基本步骤的是:
Load the library.
加载库。
Initialize with create_server.
初始化create_server。
Define desired callback functions to respond to events with setCallback.
定义所需的回调函数响应事件,setCallback。
Service events with service.
服务事件的service。
(作者)----------Author(s)----------
B. W. Lewis <blewis@illposed.net>
Maintainer: B. W. Lewis <blewis@illposed.net>
参考文献----------References----------
实例----------Examples----------
# Run the demos to see a few examples:[运行演示看几个例子:]
# demo(package='websockets')[演示(包=的WebSockets)]