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

Commit 510d29f

Browse files
committed
Merge pull request repejota#16 from repejota/feature/15
Fixed repejota#15
2 parents a64d634 + 6b72bc9 commit 510d29f

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)