PHP API Websocket Help

i’m having trouble trying to achieve something…

I have a websocket to a website. this is providing a constant stream of data. Every couple of seconds the websocket updates a variable.

How can i pull that variable into my script, and constantly update a figure on my page using the stream from the websocket.

Can anyone explain the process to do this?

Sponsor our Newsletter | Privacy Policy | Terms of Service