We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852a2c7 commit 46077f4Copy full SHA for 46077f4
examples/broadcasts-async.php
@@ -11,10 +11,10 @@
11
$loop = Factory::create();
12
$client = AsyncClient::create($loop, require 'resolve_key.php');
13
14
-$client->broadcasts()->subscribe(new CallbackObserver(function (BroadcastInterface $broadcast) {
+$client->broadcasts()->subscribe(function (BroadcastInterface $broadcast) {
15
resource_pretty_print($broadcast);
16
}, function ($e) {
17
echo (string)$e;
18
-}));
+});
19
20
$loop->run();
0 commit comments