Skip to content

Commit a26b71e

Browse files
authored
Merge pull request #261 from SimonHeimberg/zmq-fixes
ZmqPusher works with other protocols than tcp
2 parents 9c4e7cd + 7c840ed commit a26b71e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Pusher/Zmq/ZmqServerPushHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handle(LoopInterface $loop, WampServerInterface $app)
7878
$config['port']
7979
));
8080

81-
$this->consumer->bind('tcp://' . $config['host'] . ':' . $config['port']);
81+
$this->consumer->bind($config['protocol'] . '://' . $config['host'] . ':' . $config['port']);
8282

8383
$this->consumer->on('message', function ($data) use ($app, $config) {
8484

@@ -91,7 +91,7 @@ public function handle(LoopInterface $loop, WampServerInterface $app)
9191
$this->eventDispatcher->dispatch(Events::PUSHER_SUCCESS, new PushHandlerEvent($data, $this));
9292
} catch (\Exception $e) {
9393
$this->logger->error(
94-
'AMQP handler failed to ack message', [
94+
'zmq handler failed to ack message', [
9595
'exception_message' => $e->getMessage(),
9696
'file' => $e->getFile(),
9797
'line' => $e->getLine(),

0 commit comments

Comments
 (0)