<?php
#
# This script runs when a client disconnects
#
namespace IMATHUZH\Qfq\Core\Messenger\Hooks;

require_once(__DIR__ . '/../../../../vendor/autoload.php');

$request = new NchanRequest();
$request->notifyController([
    'type' => 'message',
    'name' => 'unsub',
    'payload' => [
        'originalUrl' => $request->requestUri,
        'nchanVersion' => $request->nchanVersion,
        'subscriberType' => $request->subscriberType
    ]
]);
