Skip to content

Can't Pub/Sub On Same Client #39

Closed
@daneren2005

Description

@daneren2005

It appears that pub sub is not really async. After trying to figure out why I wasn't receiving commands on another client, I finally tried commenting out $client->subscribe($channel); and all of a sudden the publish commands were going through.

With a client subscribe the following code never logged the publish complete message:

$this->redis->publish($this->channel, json_encode($msg))->then(function($return) {
    $this->debug('Publish received ' . $return);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions