Git Product home page Git Product logo

r-websockets's Introduction

R/Websockets
A simple, portable HTML 5 Websocket API implementation for R.
Copyright (C) 2011 by Bryan W. Lewis, <[email protected]>, package licensed under GNU LGPL v3.

---

NOTE: This package is no longer maintained. For implementing websocket servers in R, try the httpuv package (https://github.com/rstudio/httpuv).

r-websockets's People

Contributors

bwlewis avatar jaryan avatar jcheng5 avatar jeffreyhorner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r-websockets's Issues

antivirus/malware software gets in the way

Hi guys,

we are currently using this great package in one of our projects. I just wanted to give you guys a heads up that this also applies to the R-Websockets package. It caused us quite a headache seeing as it results in some quite unpredictable behaviour (server suddenly starts responding after X calls to it and so on...).

Hope it is ok that i posted it as an issue

regards

Raphael

WebSocket spec rev 8 support

Hey there,

I just stumbled upon this package (great job btw!) as I need some websocket functionality in R.
However, the package -- as it is in git HEAD -- doesn't work OOTB with modern chrome releases (got Chrome 14 beta here).

The newest libwebsocket git HEAD, however, does support rev 7.
Between rev 7 and rev 8 there were no real changes done to the protocol itself (I believe) therefore, it can easily be hacked into working with rev 8, too :)

Would be great if you could add support for rev 08 out of the box!

Query on R Websocket

Hi,

I have a shinyapp that requires transfer of large json data. I am new to this world so please pardon my ignorance. I have read that compression of data while transfer using websocket can speed up my app significantly. Was wondering if R websocket natively support compression of json while transferring to and from the client or do we need to make some tweaks to enable it.

Regards
Sushanta

Error in !is.na(server$DEBUG) && server$DEBUG

I have cloned the repository this morning to my machine, built it with R CMD build R-Websockets/ and installed it with R CMD INSTALL websockets_1.1.0.tar.gz

When running any of the demo scripts, as soon as a client connects I get the error:

Error in !is.na(server$DEBUG) && server$DEBUG : 
  invalid 'y' type in 'x && y'

traceback() gives:

> traceback()
1: service(w)

And sessionInfo() returns:

> sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] websockets_1.1.0 digest_0.5.1     caTools_1.12     bitops_1.0-4.1  

Pong not implemented

Section 5.5.2 of RFC 6455:

Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in
response, unless it already received a Close frame.  It SHOULD
respond with Pong frame as soon as is practical.  Pong frames are
discussed in Section 5.5.3.

Looks to me like this needs to go at the end of the service function in websockets.R.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.