Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
2791491
Topic
261475
Board
Beginners & Help
Re: Help with Blockchain.info WebSocket API
by
cyrano741
on
24/07/2013, 00:22:25 UTC
My mistake; you have to send an op to the API. Correct code below for others' reference.
var conn = new WebSocket('ws://ws.blockchain.info/inv');
conn.onopen = function () {
console.log('open');
conn.send('{"op":"unconfirmed_sub"}');
}