PHPDaemon\SockJS\Methods\Generic::stop PHP Method

stop() public method

Stop
public stop ( ) : void
return void
    public function stop()
    {
        if ($this->stopped) {
            return;
        }
        $this->stopped = true;
        if (in_array('one-by-one', $this->pollMode)) {
            $this->finish();
            return;
        }
        $this->appInstance->unsubscribeReal('s2c:' . $this->sessId, function ($redis) {
            $this->finish();
        });
    }