Author

Topic: Help with Blockchain.info WebSocket API (Read 2941 times)

full member
Activity: 179
Merit: 100
June 11, 2014, 12:19:59 PM
#5
If you are still working on this maybe you can check out our Websockets API as well:
https://www.biteasy.com/developers

Good reference for new developer out there.
member
Activity: 99
Merit: 20
June 11, 2014, 11:58:59 AM
#4
If you are still working on this maybe you can check out our Websockets API as well:
https://www.biteasy.com/developers

i was searching for this! Thanks!
newbie
Activity: 55
Merit: 0
March 15, 2014, 10:15:37 PM
#3
If you are still working on this maybe you can check out our Websockets API as well:
https://www.biteasy.com/developers
newbie
Activity: 4
Merit: 0
July 23, 2013, 08:22:25 PM
#2
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"}');
      }
newbie
Activity: 4
Merit: 0
July 23, 2013, 08:12:46 PM
#1
I am try to access the blockchain.info WebSocket API, but I can't get it to work. The connection opens, but then no messages are received. Can anyone give advice on what I'm doing wrong?


 
   
 
 
 



The console output is:

open
close
Jump to: