update readme

This commit is contained in:
2021-09-15 01:54:35 +03:00
parent 32f226942e
commit 679573ad0a

View File

@ -96,9 +96,10 @@ $callable = static function (Message $message): Generator {
};
$lookup->subscribe(topic: 'topic', channel: 'channel', onMessage: $callable);
$lookup->subscribe(topic: 'anotherTopic', channel: 'channel', onMessage: $callable);
$lookup->subscribe(topic: 'anotherTopic', channel: 'channel', onMessage: $callable);
$lookup->run();
$lookup->unsubscribe(topic: 'local', channel: 'channel');
$lookup->stop(); // unsubscribe all
```
### Integrations