Skip to content

Implement PHP Client #37

@rvanlaak

Description

@rvanlaak

Currently the bundle supports the Javascript client. What about also supporting the PHP Client as described in the example on http://socketo.me/docs/push

By requiring react/zmq": "0.2.*|0.3.* it will get possible to let the Symfony application directly talk with Ratchet.

    $context = new ZMQContext();
    $socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'my pusher');
    $socket->connect("tcp://localhost:5555");

    $socket->send(json_encode(array('message' => 'this will be pushed to all clients'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions