Using std.net.curl to stream data
Trollgeir via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jan 28 06:18:35 PST 2015
I'm having some trouble trying to stream data to my plot.ly graph:
https://plot.ly/62/~Trollgeir/
The API: https://plot.ly/streaming/
I am able to post messages that get recorded into the stream
live, although right after curl uploads it, it just seems to wait
for a response it's not getting, and eventually timeouts. Does
anyone have any advice?
auto client = HTTP("stream.plot.ly");
client.addRequestHeader("plotly-streamtoken","e8bg6omat6");
client.verbose = true;
string msg = "{ \"x\": 500, \"y\": 500 } \n";
client.postData(msg);
client.perform;
More information about the Digitalmars-d-learn
mailing list