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
if ( sizeof($Server->wsClients) == 1 )
$Server->wsSend($clientID, ""); ## this part reaplace with
this : foreach ( $Server->wsClients as $id => $client )
$Server->wsSend($id,$message);
or otherway just take off the if statment if ( sizeof($Server->wsClients) == 1 ) in line 21.
i works with a software restaurant and when another socket is not open the functions inside were not running, and doing this change all go fine! 😄
Activity
jona950 commentedon Aug 27, 2018
the trouble is in server.php
if ( sizeof($Server->wsClients) == 1 )
$Server->wsSend($clientID, ""); ## this part reaplace with
this : foreach ( $Server->wsClients as $id => $client )
$Server->wsSend($id,$message);
or otherway just take off the if statment if ( sizeof($Server->wsClients) == 1 ) in line 21.
i works with a software restaurant and when another socket is not open the functions inside were not running, and doing this change all go fine! 😄
aacassandra commentedon Sep 4, 2018
@why don't you suggest your idea or become contributing