New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish event missing #64
Comments
Are you sure it works for you? The problem is that you can't send |
I've no idea, i did this stuff because i'm using only publish from PHP. I use publish from PHP to send an event recieved by Node.JS and Node.JS publish a real time modifcation to all client (socket.io). So I don't use subscribe from PHP, but from Node.JS, there is so 2 connection, and in this way it works great ! So maybe you should create a specific cas which refuse to use both with same connection... |
If you don't subscribe to any channel from PHP then you don't need the
|
FYI It might be worth putting that last point somewhere near the pubsub subscribe docs as I've just spent a while trying to figure out the same thing. |
@jmoz sure, will do that soon since we are starting with writing a descriptive documentation of the whole library. |
On PubSubContext.php :
Please add the following command :
After class start :
const PUBLISH = 'publish';
Somewhere :
/**
* Publish an event to the specified channel
* @param mixed $arg,... One or more channel names.
/
public function publish(/ arguments */){
$this->writeCommand(self::PUBLISH, func_get_args());
}
Based on code showed for subscribe & co. Tested & work ;)
The text was updated successfully, but these errors were encountered: