Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No works in one tab! #21

Open
jona950 opened this issue Aug 27, 2018 · 2 comments
Open

No works in one tab! #21

jona950 opened this issue Aug 27, 2018 · 2 comments

Comments

@jona950
Copy link

jona950 commented Aug 27, 2018

the functions on fancywebsocket.js no works when just one window is open, but when more than one window is open (browser) run normally.

@jona950
Copy link
Author

jona950 commented 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
Copy link

@why don't you suggest your idea or become contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants