rstudio / R-Websockets

HTML 5 Websockets implementation for R
http://illposed.net/websockets.html
69 stars 37 forks source link

Support for binary messages, bugfix on websockets-internal.R:.frame bit ordering #5

Closed cscheid closed 12 years ago

cscheid commented 12 years ago

These commits add support for binary messages from websocket_write. This is useful for sending raw data more efficiently down the wire. Since version 15, Chrome can stuff binary messages directly into ArrayBuffers, giving a fast way to get arrays of raw floats.

One of the commits fixes a bug on .frame which arises when the opcode parameter in .frame is different from 1, and the other commit adds the is.binary functionality to the websocket server functions.