Pawl icon indicating copy to clipboard operation
Pawl copied to clipboard

send message from php to websocket

Open daniel89fg opened this issue 2 years ago • 1 comments

Hello.

I have a connection created from javascripts successfully towards my websocket server. I send messages and receive the perfect response. I am using the cboden/ratchet library.

Now what I need is to save a message in the database, to be able to send a message from php to the websocket server so that it sends it to the chat. I can't do this.

I've tried the sample code but I can't do anything. Can you guide me a bit?

Thank you.

daniel89fg avatar Feb 08 '23 11:02 daniel89fg

same situation x-x. php client connects successfully but suddenly get a "Connection closed" with code 1000 and the process does not listen to the 'open', 'message' or 'handshake' events; neither if I execute the method ->send() in the root of the callback of the Connector()->then() method

aguetkriegerisch avatar Apr 13 '23 16:04 aguetkriegerisch