Hi!
I need to send a message to WebSocket worker from another PHP script. Here I've found an example how to implement it: #184 (comment)
Here we start 3 workers listening 3 ports. Is it possible to use Channel directly, without creating HTTP worker? It looks like an extra element which we can get rid of.
I tried to use Channel directly from another PHP script:
Channel\Client::connect('127.0.0.1', 2206);
Channel\Client::publish('some', 'thing');
But I had no luck with that.
Hi!
I need to send a message to WebSocket worker from another PHP script. Here I've found an example how to implement it: #184 (comment)
Here we start 3 workers listening 3 ports. Is it possible to use Channel directly, without creating HTTP worker? It looks like an extra element which we can get rid of.
I tried to use Channel directly from another PHP script:
But I had no luck with that.