Free up to 1MM monthly messages. No credit card required.
Earlier this year we received a question about how to use the PubNub Data Stream Network without an SLA officially supported SDK provided by PubNub. This specific case regarded using Google Dart and PubNub to subscribe to a bitcoin feed.
We don’t recommend doing this, and we recommend using the following method which includes using the standard
import 'dart:js' library interop. Details follow, but if you still want to continue with a non-library method, the documentation for the HTTP REST Push API interface is a good starting point.
But now let’s continue onward with the recommended method below to use PubNub and Google Dart to subscribe to a bitcoin feed!
Subscribing to a bitcoin feed using Google Dart is rather simple, though a bit confusing at first. Start by setting up your HTML file with the following script tags; and don’t forget the PubNub
PubNub Google Dart HTML File Example
NOTE: The PubNub
<div> includes the bitcoin Subscribe Key paramater.
Next your Dart app source code will simply open the TCP Socket to the live stream. Note the channel ID is
BTC-to-USD-stock-trade-value. This channel name is just an example, but many channel streams are provided by botcoin feeds that allow you to receive Trade/Depth/Ticker signals.
The example channel references were for explanation purposes only and for you as a guide in understanding how to implement a quote symbol streaming solution for real-time price and trade events. Want to build a bitcoin exchange or bitcoin streaming app yourself? Take a look at our Bitcoin Solution Kit.
A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.
Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...
Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.