Registry / networking / textalk-websocket

textalk-websocket

JSON →
library1.6.3phppackagistunverified

WebSocket client and server library for PHP.

composer require textalk/websocket
INSTALL
IMPORT
SIG · TEXTALK-WEBSOCKET
T
textalk-websocket
networkingphpv1.6.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.

Client
use WebSocket\Client;

Connect to a WebSocket server and send/receive a message.

use WebSocket\Client; $client = new Client('ws://echo.websocket.org'); $client->send('Hello'); echo $client->receive();
Debug
Known issues
gotchaThe library uses a blocking I/O model; for concurrent connections, consider using an event loop.
fix
Use non-blocking mode or integrate with an event loop library like ReactPHP.
affects: >=1.0.0
Upgrade
Version history
1.6.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
textalk-websocket — pip install textalk-websocket · libregistry