Skip to content

Commit

Permalink
Add getSocketResource method to enhance socket management
Browse files Browse the repository at this point in the history
This method is a prerequisite to eventually resolving chrome-php/chrome#606
  • Loading branch information
divinity76 authored Mar 17, 2024
1 parent 2cf557f commit 4a58bdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,13 @@ protected function configure(array $options): void

parent::configure($options);
}
/**
* Retrieves the underlying socket resource.
*
* @return resource The socket resource
*/
public function getSocketResource()
{
return $this->socket->getResource();
}
}

0 comments on commit 4a58bdc

Please sign in to comment.