I’m trying to use the PubNub class to stream data to a chart like this: http://www.pubnub.com/developers/eon/chart/spline/
The imp PubNub class description says it takes message data in any basic type (string, integer, etc), an array, or an object. But looking at their “dummy publish” example…
pubnub.publish({ channel: channel, message: { columns: [ ['x', new Date().getTime()], ['Austin', Math.floor(Math.random() * 99)], ['New York', Math.floor(Math.random() * 99)], ['San Francisco', Math.floor(Math.random() * 99)], ['Portland', Math.floor(Math.random() * 99)] ] } });
the message content looks nothing like a single object that the imp class accepts. I guess I’m asking if anyone can tell me how I should format my data to be compatible.