Open makopov opened 2 years ago
I have 3 questions here...
$loop = Factory::create(); $loop->addPeriodicTimer(1, function($message) { var_dump('loop: ' . date('Y-m-d H:i:s')); var_dump($message); }); $api->setLoop($loop); $api->subscribePublicChannels($query, $channels, function (array $message, WebSocket $ws, LoopInterface $loop) use(&$exchange, &$interval, &$results) { // $loop->run(); // print $message['data']['symbol'] . PHP_EOL; } }, function ($code, $reason) { echo "OnClose: {$code} {$reason}\n"; });
I have 3 questions here...