arthurkushman / php-wss

Web-socket server/client with multi-process and parse templates support on server and send/receive options on client
MIT License
210 stars 32 forks source link

How client checks if any new messages available to receive? #82

Open mohaghegh opened 1 year ago

mohaghegh commented 1 year ago

Hello, I'm trying to use the client to connect to a 3rd-party server and receive updates. Seems that when there's no new messages, calling the receive() method results in a connection close by the server. Is there a method or an event to check if any updates available?

Thanks a lot