Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Using PHP to Get Websocket Notifications?

I'm trying to figure out how to use Blockchain's websocket here:

wss://ws.blockchain.info/inv

Documentation:

https://www.blockchain.com/api/api_websocket

All that I want to do is get notifications of new transactions ({"op":"unconfirmed_sub"}) so that my PHP script can check several things about each transaction and then insert it into the database.

From everything I've read, websocket is for running in the browser, is there no way to connect to it with PHP or have it send data to a PHP script instead?

Comments