laravel-websockets/src/WebSockets/Channels/ChannelManager.php

19 lines
477 B
PHP
Raw Normal View History

2018-11-21 11:13:40 +00:00
<?php
2018-11-27 15:21:31 +00:00
namespace BeyondCode\LaravelWebSockets\WebSockets\Channels;
2018-11-21 11:13:40 +00:00
2018-11-21 21:36:50 +00:00
use Ratchet\ConnectionInterface;
interface ChannelManager
2018-11-21 11:13:40 +00:00
{
public function findOrCreate(string $appId, string $channelName): Channel;
2018-11-21 21:11:44 +00:00
public function find(string $appId, string $channelName): ?Channel;
2018-12-01 10:52:47 +00:00
public function getChannels(string $appId): array;
2018-11-21 11:13:40 +00:00
public function getConnectionCount(string $appId): int;
2018-12-01 11:26:08 +00:00
public function removeFromAllChannels(ConnectionInterface $connection);
2018-12-04 21:22:33 +00:00
}