Skip to content

monday-factory/synchronous-socket-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

monday-factory/synchronous-socket-client

Super simple synchronous socket stream client

$options = [
	'connectionTimeout' => 30, // Default value
	'streamTimeout' => 30, // Default value
];

/**
 * @throws MondayFactory\SynchronousSocketClient\Exception\ConnectionException
 */
$connection = MondayFactory\SynchronousSocketClient\Connection::factory('tcp://my.super.server:12345', $options);

$response = $connection->sendMessage('{"method": "ping"}');

echo $response;

$connection->close();

About

Super simple synchronous socket stream client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages