That is exactly what I am (currently) doing. Its actually a little tricky because of the stream-like nature of websockets. Currently I&#x27;m just writing to a file, but ideally I&#x27;d like to use the R connection API. The issue with that is that there doesn&#x27;t appear to be a Rcpp wrapper around that particular API so I may have to do that (or test my theories by just using scan to read from the file after using a c++ binary to write it (using system).<p>Its a dirty hack, but appears to work.<p>FWIW, websocketpp is the C++ library I&#x27;m using.