How make Textalk/websocket-php client to check ws connection with returned values?

446 Views Asked by At

I've used class Textalk/websocket-php and want to check connection from client to server. If ws server is stopped, my script does not work.

$client = new Client("ws://localhost:8000/");
$client->ping();

After last row commands are not execute. I'm deprecate all errors, but this step not helped.

0

There are 0 best solutions below