public onPublish ( Ratchet\ConnectionInterface $conn, string | Topic $topic, string $event, array $exclude, array $eligible ) | ||
$conn | Ratchet\ConnectionInterface | |
$topic | string | Topic | The topic the user has attempted to publish to |
$event | string | Payload of the publish |
$exclude | array | A list of session IDs the message should be excluded from (blacklist) |
$eligible | array | A list of session Ids the message should be send to (whitelist) |