Answer the question
In order to leave comments, you need to log in
phpdaemon. How to launch your applications from applications?
Phpdaemon is set up and I'm trying to run the application. I threw in applications an example of a websocket application. Wrote a class in java that connects to a server. At first, nothing worked. Then I registered location /Example/ in nginx and passed ExampleWebSocket to APPNAME. logged in browser localhost/Example. I wrote in the console that "ExampleWebSocket instantiated". After that, sending from java ping, pong came to me. All OK. Then I tried to start the chat . The chat did not start and it was written in the console that the route with the name Chat was not found. Then I decided to try again with ping pong. It did not start and wrote in java that the connection was refused. So what is the right way to launch applications? And what's with the chat?
Answer the question
In order to leave comments, you need to log in
The author answered in the mailing list, for the rest I duplicate it here:
You need to add a section to the config… For example:
ExampleWebSocket {
}
Thank you. Understood this. Just do not understand how to send messages to other users or all at once? I opened 2 browsers and displayed implode(' ', array_keys($this->appInstance->sessions)); With two clients came "2 3". And I decided to write $this->appInstance->sessions[3]->client->sendFrame($data); But nothing came. How can I send it to another client?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question