PHPDaemon\SockJS\Session::onWrite PHP Method

onWrite() public method

public onWrite ( ) : void
return void
    public function onWrite()
    {
        $this->onWrite->executeAll($this->route);
        if (method_exists($this->route, 'onWrite')) {
            $this->route->onWrite();
        }
        if ($this->finished) {
            if (!sizeof($this->buffer) && !sizeof($this->framesBuffer)) {
                $this->onFinish();
            }
        }
        Timer::setTimeout($this->finishTimer);
    }