\apex\core\workernotify

Handles various forms of notifications such as sending of e-mail, SMS and web socket messages.

Summary

Methods
Properties
Constants
send_email()
send_sms()
send_ws()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
format_ws_message()
generate_ws_key()
No private properties found
N/A

Methods

send_email()

send_email(\apex\core\worker\EventMessageInterface  $msg,\apex\app\msg\emailer  $emailer)

Send an e-mail message

Parameters

\apex\core\worker\EventMessageInterface $msg

The message that was dispatched.

\apex\app\msg\emailer $emailer

The /app/msg/emailer.php class. Injected.

send_sms()

send_sms(\apex\core\worker\EventMessageInterface  $msg)

Send a SMS message via Nexmo

Parameters

\apex\core\worker\EventMessageInterface $msg

The message that was dispatched.

send_ws()

send_ws(\apex\core\worker\EventMessageInterface  $msg)

Send Web Socket message

Parameters

\apex\core\worker\EventMessageInterface $msg

The message that was dispatched.

format_ws_message()

format_ws_message(  $payload,  $opcode = 'text',  $masked = true)

Get WebSocket message.

Parameters

$payload
$opcode
$masked

generate_ws_key()

generate_ws_key()

Generate WebSocket key