Client
class Client
Traits
Macroable
Properties
string | $channel | ||
protected API | $client | ||
protected IncomingMessageHandler|null | $incomingMessageHandler |
Methods
__construct(string $publicKey, string $privateKey, IncomingMessageHandler|null $incomingMessageHandler = null, $baseURI = 'broadcast.netflexapp.com', $prefixWithChannel = true)
No description
string
key()
Retrieves the channel key
mixed
broadcast(mixed $message, Channel|string $topic = 'public')
Broadcasts the message to the given topic
Details
at line 29
__construct(string $publicKey, string $privateKey, IncomingMessageHandler|null $incomingMessageHandler = null, $baseURI = 'broadcast.netflexapp.com', $prefixWithChannel = true)
at line 64
string
key()
Retrieves the channel key
at line 74
register(Handler $handler = null)
Registers a Handler
at line 93
mixed
broadcast(mixed $message, Channel|string $topic = 'public')
Broadcasts the message to the given topic