Skip to content
This repository was archived by the owner on Jan 28, 2024. It is now read-only.

Add functionality to send message to channel after connecting #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

praswicaksono
Copy link

Add feature to broadcast message to specified channel after connection and disconnect after successfully send

if(!empty($msg))
{
$this->msg($msg);
$this->listen(true);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this conditional can be simplified to something more like:

if (!empty($msg)) {
    $this->msg($msg)
}

$this->listen(true)

@epochblue
Copy link
Owner

Thanks for the PR! I've had a few people ask for functionality like this, so this is great. I made a few comments on the commit. When you get a sec, review my comments and let me know what you think. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants