This commit is contained in:
Marcel Pociot
2020-04-22 12:32:29 +02:00
parent 1f8865145f
commit e5e53b8b68
41 changed files with 1593 additions and 915 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Contracts;
use App\Server\Connections\ControlConnection;
use Ratchet\ConnectionInterface;
interface ConnectionManager
{
public function storeConnection(string $host, ?string $subdomain, ConnectionInterface $connection): ControlConnection;
public function storeHttpConnection(ConnectionInterface $httpConnection, $requestId): ConnectionInterface;
public function getHttpConnectionForRequestId(string $requestId): ?ConnectionInterface;
public function removeControlConnection($connection);
public function findControlConnectionForSubdomain($subdomain): ?ControlConnection;
public function findControlConnectionForClientId(string $clientId): ?ControlConnection;
}