How call onMessage after MySql query ?

54 views
Skip to first unread message

Jitendra

unread,
Sep 22, 2016, 5:15:51 AM9/22/16
to Ratchet
Hi all, I am new into socket programming.

I have download your chat demo and it's working fine.

I need some help from you,

In my application i want to insert record into database and broadcast that message to all other connected user
So my query is how can i call onMessage() function from out side of Chat class ?
I am using codeigniter framework so i can not call this function form out side of Chat class if i try to call using object then it gives error of $from user (connected user object)

Reply all
Reply to author
Forward
0 new messages