Skip to content

No works in one tab! #21

Open
Open

Description

@jona950

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

Activity

  1. jona950 commented on Aug 27, 2018

    @jona950
    Author

    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! 😄

  2. aacassandra commented on Sep 4, 2018

    @aacassandra

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions