Registry / networking / react-socket-client

react-socket-client

JSON →
library0.7.0phppackagistunverified

Async, streaming plaintext TCP/IP and secure TLS based connections for ReactPHP

composer require react/socket-client
INSTALL
IMPORT
SIG · REACT-SOCKET-CLIEN
R
react-socket-client
networkingphpv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connector
use React\Socket\Connector;

Create a TCP connection using ReactPHP event loop

use React\Socket\Connector; use React\EventLoop\Factory; $loop = Factory::create(); $connector = new Connector($loop); $connector->connect('tcp://example.com:80')->then(function ($connection) { echo 'Connected!'; }); $loop->run();
Debug
Known issues
breakingThis package is deprecated in favor of react/socket.
fix
Use react/socket instead.
affects: >=0.7.0
Upgrade
Version history
0.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
Amazon
1
Resources
react-socket-client — pip install react-socket-client · libregistry