File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
+ "minimum-stability" : " dev" ,
2
3
"name" : " dnode/dnode" ,
3
4
"type" : " library" ,
4
5
"description" : " DNode RPC protocol for PHP 5.3" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ public function connect()
43
43
}
44
44
45
45
$ conn = new Connection ($ stream , $ this ->loop );
46
- $ this ->loop ->addReadStream ($ stream , array ($ conn , 'handleData ' ));
47
46
$ this ->handleConnection ($ conn , $ params );
48
47
}
49
48
@@ -61,7 +60,7 @@ public function listen()
61
60
$ that = $ this ;
62
61
63
62
$ server = new Server ($ this ->loop );
64
- $ server ->on ('connect ' , function ($ conn ) use ($ that , $ params ) {
63
+ $ server ->on ('connection ' , function ($ conn ) use ($ that , $ params ) {
65
64
$ that ->handleConnection ($ conn , $ params );
66
65
});
67
66
$ server ->listen ($ params ['port ' ], $ params ['host ' ]);
You can’t perform that action at this time.
0 commit comments