Skip to content

Commit a32dfe1

Browse files
committed
Merge pull request bergie#15 from igorw/updates
Update composer and react
2 parents f85a190 + 7b4fc0a commit a32dfe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"minimum-stability": "dev",
23
"name": "dnode/dnode",
34
"type": "library",
45
"description": "DNode RPC protocol for PHP 5.3",

src/DNode/DNode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function connect()
4343
}
4444

4545
$conn = new Connection($stream, $this->loop);
46-
$this->loop->addReadStream($stream, array($conn, 'handleData'));
4746
$this->handleConnection($conn, $params);
4847
}
4948

@@ -61,7 +60,7 @@ public function listen()
6160
$that = $this;
6261

6362
$server = new Server($this->loop);
64-
$server->on('connect', function ($conn) use ($that, $params) {
63+
$server->on('connection', function ($conn) use ($that, $params) {
6564
$that->handleConnection($conn, $params);
6665
});
6766
$server->listen($params['port'], $params['host']);

0 commit comments

Comments
 (0)