Skip to content

Using Channel directly, without creating HTTP worker #317

@plashenkov

Description

@plashenkov

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions