Auto-sending message with interval

35 views
Skip to first unread message

Alex Solomaha

unread,
Jan 8, 2016, 6:45:04 PM1/8/16
to Ratchet


Hello. I am new in WebSockets and Ratchet. I've built a simple chat on MessageComponentInterface and it works pretty good. So I want to add feature: the script will send message(and do some logic) to all (connected) clients (if there is some) with interval in 45 seconds. I think this will be like a Bot on chat exmaple on site but how to do this? Also provide examples, please. 

Sorry for my English
Reply all
Reply to author
Forward
0 new messages