Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 6b72bc9

Browse files
author
Raül Pérez
committed
Fixed repejota#15
msg and payload should be send in one request.
1 parent a64d634 commit 6b72bc9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Connection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ public function ping()
204204
public function publish($subject, $payload)
205205
{
206206
$msg = 'PUB '.$subject.' '.strlen($payload);
207-
$this->send($msg);
208-
$this->send($payload);
207+
$this->send($msg . "\r\n" . $payload);
209208
$this->pubs += 1;
210209
}
211210

0 commit comments

Comments
 (0)