You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would recommend creating a new connection when the connection is closed. You'll have to abstract some of your code into re-usable functions and maintain a connection variable. I would also recommend using RxPHP as it makes this kind of behaviour trivial.
Hello,
I'm using your lib to do some test on an api and i would like to know how to reopen a connection closed using your exemple on the event close
How to reopen a connection after this line
echo "Connection closed ({$code} - {$reason})\n";
Regards
The text was updated successfully, but these errors were encountered: