This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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) }; | |
}; |
NewerOlder