Events
class Events (View source)
Properties
| protected resource|null | $socket | The cloud socket. |
Methods
Create a new instance.
Emit an event.
Emit many events.
Write the payload to the socket.
Format the payload.
Ensure the socket is connected.
Connect the socket.
Determine if the socket is connected.
Disconnect the socket.
Decorate the message with the socket's meta data.
Details
__construct(string $address)
Create a new instance.
void
emit(array $payload)
Emit an event.
void
emitMany(array $payloads)
Emit many events.
protected void
write(string $payload)
Write the payload to the socket.
protected string
format(array $payloads)
Format the payload.
protected void
ensureConnected()
Ensure the socket is connected.
protected void
connect()
Connect the socket.
protected bool
connected()
Determine if the socket is connected.
protected void
disconnect()
Disconnect the socket.
protected string
withSocketMetaData(string $message)
Decorate the message with the socket's meta data.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.