Call onMessage() from another php file

77 views
Skip to first unread message

Jitendra

unread,
Oct 3, 2016, 2:11:18 AM10/3/16
to Ratchet
I have implement rachet app and it's working fine when i connect to socket through browser.
My query is can i call socket functions like onMessage() form any other php file ? I not want to user browser
if yes then how can i do it ?

Tyler Meador

unread,
Oct 5, 2016, 4:54:08 PM10/5/16
to Ratchet
I had the same question. It's actually covered in the tutorial on their site. ("Push Integration"). You'll have to install a beta php extension called "zmq" which allows a standard LAMP stack to interact with the websocket stack. I haven't played with it to figure it out, but it's right here
Reply all
Reply to author
Forward
0 new messages