Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send message from php to websocket #145

Open
daniel89fg opened this issue Feb 8, 2023 · 1 comment
Open

send message from php to websocket #145

daniel89fg opened this issue Feb 8, 2023 · 1 comment

Comments

@daniel89fg
Copy link

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.

@aguetkriegerisch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants