PHPDaemon\SockJS\Methods\Info::init PHP Method

init() public method

Constructor
public init ( ) : void
return void
    public function init()
    {
        parent::init();
        Crypt::randomInts32(1, function ($ints) {
            $this->opts['entropy'] = $ints[0];
            echo json_encode($this->opts);
            $this->finish();
        }, 9);
        $this->sleep(5, true);
    }