Skip to content

Commit 100f6ac

Browse files
committed
[Socket] Rename connect event to connection
This is consistent with the nodejs naming.
1 parent 79d78f2 commit 100f6ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function handleConnection($socket)
4343
$client = $this->createConnection($socket);
4444
$this->loop->addReadStream($socket, array($client, 'handleData'));
4545

46-
$this->emit('connect', array($client));
46+
$this->emit('connection', array($client));
4747
}
4848

4949
public function getPort()

0 commit comments

Comments
 (0)