what is the best way to handle data from wss stream via php. I don't want to use browser, i need to connect to this stream and handle the incoming json data.
I have a link like:
wss://someday.somehow.eu/v1/stream?token=1234567
is there something similar for php that listens to the stream and handles data like javascript does?
Something like:
var ws = new WebSocket('wss://someday.somehow.eu/v1/stream?token='+token);
ws.onmessage = function (event)...