How to check if the message was delivered, websocket php

10

How can I check if a message that is sent by the WEBSOCKETS Server has been delivered to the endpoint?

Use this class: link

    
asked by anonymous 10.03.2015 / 00:00

1 answer

8

The class has some predictions for failure: the wsSendClientMessage method of this class returns false if not all the content could be sent, and the class periodically "drips" clients to detect a hung or disconnected client.

If you need to be sure that the customer has received and understood the message, have the customer send a confirmation message. Even if it were a Socket.IO framework, which does automatic reconnection and retransmission, a positive acknowledgment is the best form.

    
12.08.2015 / 21:40