ScopedChannelManager
interface ScopedChannelManager
Methods
app()
Get the application instance.
array
all()
Get all the channels.
bool
exists(string $channel)
Determine whether the given channel exists.
findOrCreate(string $channel)
Find the given channel or create it if it doesn't exist.
array
connections(string|null $channel = null)
Get all connections for the given channels.
ChannelConnection|null
findConnection(string $socketId)
Find a connection by its socket ID.
void
Details
at line 17
Application
app()
Get the application instance.
at line 24
array
all()
Get all the channels.
at line 29
bool
exists(string $channel)
Determine whether the given channel exists.
at line 34
Channel|null
find(string $channel)
Find the given channel.
at line 39
Channel
findOrCreate(string $channel)
Find the given channel or create it if it doesn't exist.
at line 46
array
connections(string|null $channel = null)
Get all connections for the given channels.
at line 51
ChannelConnection|null
findConnection(string $socketId)
Find a connection by its socket ID.
at line 56
void
unsubscribeFromAll(Connection $connection)
Unsubscribe from all channels.
at line 61
void
remove(Channel $channel)
Remove the given channel.