Nothing
### Hello world client as in the ZeroMQ guide.
# SHELL> Rscript hwserver.r &
# SHELL> Rscript hwclient.r
suppressMessages(library(pbdZMQ, quietly = TRUE))
### Initial.
context <- zmq.ctx.new()
requester <- zmq.socket(context, ZMQ.ST()$REQ)
zmq.connect(requester, "tcp://localhost:5555")
### Send and receive 5 times.
for(i.req in 1:5){
cat("Sending Hello ", i.req, "\n")
zmq.send(requester, "Hello")
buf <- zmq.recv(requester, 10L)
cat("Received World ", i.req, "\n")
}
### Finish.
zmq.close(requester)
zmq.ctx.destroy(context)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.