Skip to content

Commit 62b4c75

Browse files
committed
Document "close" event
1 parent 70d9b08 commit 62b4c75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Simple interface for executing redis commands
1111
*
1212
* @event message(ModelInterface $model, Client $thisClient)
13+
* @event close()
1314
*/
1415
interface Client extends EventEmitterInterface
1516
{
@@ -43,6 +44,8 @@ public function end();
4344
/**
4445
* close connection immediately
4546
*
47+
* This will emit the "close" event.
48+
*
4649
* @see self::end() for closing the connection once the client is idle
4750
*/
4851
public function close();

0 commit comments

Comments
 (0)