Registry / networking / ratchet-pawl

ratchet-pawl

JSON →
library0.4.3phppackagistunverified

Asynchronous WebSocket client

composer require ratchet/pawl
INSTALL
IMPORT
SIG · RATCHET-PAWL
R
ratchet-pawl
networkingphpv0.4.3
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.

WebSocket
use Ratchet\Client\WebSocket;

Connect to a WebSocket server and listen for messages.

use Ratchet\Client\WebSocket; $client = new WebSocket('ws://example.com'); $client->on('message', function ($msg) { echo $msg; });
Debug
Known issues
gotchaRequires an event loop (e.g., ReactPHP) to run asynchronously.
fix
Install react/event-loop and run the loop after connecting.
affects: >=0.4.0
Upgrade
Version history
0.4.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
Resources
ratchet-pawl — pip install ratchet-pawl · libregistry