Askedio\LaravelRatchet\Pusher::onCall PHP Method

onCall() public method

An RPC call has been received.
public onCall ( Ratchet\ConnectionInterface $conn, string $id, string | Topic $topic, array $params )
$conn Ratchet\ConnectionInterface
$id string The unique ID of the RPC, required to respond to
$topic string | Topic The topic to execute the call against
$params array Call parameters received from the client
    public function onCall(ConnectionInterface $conn, $id, $topic, array $params)
    {
        $this->console->info('onCall');
        $conn->callError($id, $topic, 'You are not allowed to make calls')->close();
    }