Skip to content

Instantly share code, notes, and snippets.

View michaeljs1990's full-sized avatar

Michael Schuett michaeljs1990

View GitHub Profile
@michaeljs1990
michaeljs1990 / JSON
Created April 13, 2013 03:33
JSON Parsing
/* Sets up a socket using javaScript that then listens
for transations and writes them to the screen. */
var wSocket = "ws://ws.blockchain.info/inv";
function getBlockchainJSON() {
webSocket = new WebSocket(wSocket);
webSocket.onopen = function() { onOpen() };
webSocket.onmessage = function(evt) { onMsg(evt) };
};