Home | Topics | Software Engineering

HTML 5 Websocket implementation for the R language

Printer-friendly versionPDF version

With popular CMS systems such as Drupal 7, you can now make them HTML 5 compliant and integrate with R!

R/Websockets Package

Get the R package from CRAN here: http://cran.r-project.org/web/packages/websockets/index.html

Get the development code here: https://github.com/bwlewis/R-Websockets

The reference vignette is available here (sorry, it's pretty basic): websockets.pdf

The websockets package is an HTML 5 Websocket implementation for the R language, based on the libwebsockets library written by Andy Green. The websockets package is especially well-suited to lightweight interaction between R and web scripting languages like Javascript. Multiple simultaneous websocket connections are supported.

By 'lightweight' I mean that the library has few external dependencies and is easily portable. More significantly, websockets lets Javascript and other scripts embedded in web pages directly interact with R, bypassing traditional middleware layers like .NET, Java, and web servers normally used for such interaction.

The HTML 5 Websocket API is a modern socket-like communication protocol for the web. Note that the HTML 5 Websocket API is still under development and may change. Some browsers may not enable Websockets by default (including recent versions of Firefox), but there are usually simple methods to enable the API. Despite its developmental status, the API is presently widely supported: most recent browsers support it and there are many available langauge implementations.

Source: http://illposed.net/websockets.html

Short URL
Asymptotix on Twitter

Are the key legislative pillars such as Basel II & III, UCITS IV and Solvency II forcing you to re-examine how you identify, measure and manage risk and capital?

Asymptotix work closely with our partners to help clients develop a more proactive, systematic and integrated approach to governance and risk management to deliver proper value.

Asymptotix can offer the support you need to deliver on time. Read more...

Is the goal of your website to sell services or products, educate, or collect data?

A positive customer experience is vital to conversion, no matter what your conversion goals may be. Our designers and developers will create a positive experience to maximize your conversions and deliver the optimal return on your investment. We strive to find the perfect balance between the web site’s design and functionality.

Asymptotix implements interactive solutions for European companies. From corporate websites to social communities, our clients will tell you an investment in building a scalable online experience will deliver long-term tangible benefits.

Based in Luxembourg we can help you all over Europe. Our multi-lingual team can work with projects and speak your language! Read more...