2
Well, I have two direct doubts, which are:
is limited the number of connections to the server? what limit does it? is it possible to have infinite connections?
How could I send a message to a particular user according to that library?
For example exists A
, B
, C
users and I wanted to send "Hi" to A
and not to B e C
, I did not understand very well if this script sends to the 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
received even the message, or if she was "offline"
An example, I sent "Hi" to A
but A
was not logged on to the server, or did not receive the message, such as telling my person that this message cannot be delivered?
I am using this PHP library to make my system work: Github
Read the question http://answall.com/questions/61002/enviar-messagingpara-usu%C3%A1rio-espec%C3%Adfico-em-websocket-php/98407#98407
– marcusagm