mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
22 lines
713 B
PHP
22 lines
713 B
PHP
<?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;
|
|
}
|