Well, I have two direct doubts, which are:
-
Is the number of connections to the server limited? What limits that? is it possible to have infinite connections?
-
How can I send a message to a particular user according to this library?
For example there is A
, B
, C
users and I wanted to send "Hi" to A
and not B e C
, I do not quite understand if this script sends to ID according to the establishment of the connection or if it uses the IP of the connected to send message, see the code that sends messages to all:
foreach ( $Server->wsClients as $id => $client )
if ( $id != $clientID )
$Server->wsSend($id, "Visitor $clientID ($ip) said \"$message\"");
- Is it possible to check if the message was received? if yes, how can I check if
A
even received the message, or if it was "offline"
For example, I sent "Hi" to A
but A
was not connected to the server, or did not receive the message, how to tell me that this message can not be delivered?
I'm using this library in PHP to make my system work: GitHub