public function isAttached(int $socketId = 0): bool
    {
        if (!isset($this->sockets[$socketId])) {
            return false;
        }

        return true;
    }
public function isAttached(int $socketId = 0): bool
    {
        if (!isset($this->sockets[$socketId])) {
            return false;
        }

        return true;
    }
public function isAttached ( int $ socketId = 0 ) : bool { if ( ! isset ( $ this -> sockets [ $ socketId ] ) ) { return false ; } return true ; }
Checks if socket is attached.

@param int $socketId
@return bool
Checks if socket is attached .