Skip to content

Commit 1367e9c

Browse files
authored
Merge pull request #2 from legionth/remove-connect-method
Remove connect method as API call
2 parents 61ca202 + 6e7f58e commit 1367e9c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Server.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Psr\Http\Message\RequestInterface;
66
use Psr\Http\Message\ServerRequestInterface;
7+
use React\Socket\ServerInterface;
78
use RingCentral\Psr7\Response;
89

910
class Server
@@ -13,7 +14,10 @@ class Server
1314
*/
1415
private $functions;
1516

16-
public function listen(\React\Socket\Server $socket)
17+
/**
18+
* @param ServerInterface $socket
19+
*/
20+
public function listen(ServerInterface $socket)
1721
{
1822
$middleWareFunctions = array();
1923

@@ -62,11 +66,6 @@ public function options(string $path, callable $callable)
6266
$this->functions['options'][$path] = $callable;
6367
}
6468

65-
public function connect(string $path, callable $callable)
66-
{
67-
$this->functions['connect'][$path] = $callable;
68-
}
69-
7069
public function trace(string $path, callable $callable)
7170
{
7271
$this->functions['trace'][$path] = $callable;

0 commit comments

Comments
 (0)