denpamusic / laravel-zeromq

Fully unit-tested ZeroMQ driver for Laravel.
MIT License
17 stars 7 forks source link

Can't subscribe to bitcoin core topics #6

Closed cs-v6 closed 4 years ago

cs-v6 commented 4 years ago

I was running this code in tinker bitcoind()->on('rawtx',function($message){\Log::info($message);}), after exit from tinker, the following errors are shown:

`PHP Fatal error: Uncaught TypeError: Argument 1 passed to Denpa\ZeroMQ\Connection::onSuccess() must be of the type string, array given, called in C:\Webapps\test.btc.com\vendor\denpa\laravel-zeromq\src\Connection.php on line 167 and defined in C:\Webapps\test.btc.com\vendor\denpa\laravel-zeromq\src\Connection.php:185 Stack trace:

0 C:\Webapps\test.btc.com\vendor\denpa\laravel-zeromq\src\Connection.php(16

7): Denpa\ZeroMQ\Connection->onSuccess(Array, Object(Closure), Object(React\ZMQ\SocketWrapper))

1 C:\Webapps\test.btc.com\vendor\evenement\evenement\src\Evenement\EventEmitterTrait.php(123): Denpa\ZeroMQ\Connection->Denpa\ZeroMQ{closure}(Array)

2 C:\Webapps\test.btc.com\vendor\react\zmq\src\SocketWrapper.php(94): Evenement\EventEmitter->emit('messages', Array)

3 C:\Webapps\test.btc.com\vendor\react\zmq\src\SocketWrapper.php(76): React\ZMQ\SocketWrapper->handleReadEvent()

4 C:\Webapps\test.btc.com\vendor\react\event-loop\src\StreamSelectLoop.php(245): React\ZMQ\SocketWrapper->handleEvent(Resour in C:\Webapps\test.btc.com\vendor\denpa\laravel-zeromq\src\Connection.php on line 185`

Anyone know what's the problem here?