Kraken\Ipc\Socket\SocketListener::handleClose PHP Method

handleClose() public method

Handle closing event.
public handleClose ( )
    public function handleClose()
    {
        $this->pause();
        if (is_resource($this->socket)) {
            if ($this->getStreamType() === Socket::TYPE_UNIX) {
                $path = substr($this->parseEndpoint(), 7);
                unlink($path);
            }
            fclose($this->socket);
        }
    }