Skip to content

Commit 7b4fc0a

Browse files
committed
Update socket connect event to connection
It was renamed in React to be more consistent with node.
1 parent 19cb74e commit 7b4fc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DNode/DNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function listen()
6060
$that = $this;
6161

6262
$server = new Server($this->loop);
63-
$server->on('connect', function ($conn) use ($that, $params) {
63+
$server->on('connection', function ($conn) use ($that, $params) {
6464
$that->handleConnection($conn, $params);
6565
});
6666
$server->listen($params['port'], $params['host']);

0 commit comments

Comments
 (0)