文件名称:RxWebsocket:使用 Rx 的 PHP Websockets
文件大小:15KB
文件格式:ZIP
更新时间:2024-06-19 18:21:38
php websocket-server websockets websocket-client rx
Rx\Websocket 是一个 PHP Websocket 库。 用法 客户 $ client = new \ Rx \ Websocket \ Client ( 'ws://127.0.0.1:9191/' ); $ client -> subscribe ( function (\ Rx \ Websocket \ MessageSubject $ ms ) { $ ms -> subscribe ( function ( $ message ) { echo $ message . "\n" ; } ); $ sayHello = function () use ( $ ms ) { $ ms -> onNext ( 'H
【文件预览】:
RxWebsocket-master
----.gitignore(40B)
----README.md(1KB)
----CHANGELOG.md(994B)
----test()
--------ab()
--------ServerTest.php(1KB)
--------ABResultsTest.php(953B)
--------MessageSubjectTest.php(5KB)
--------TestCase.php(653B)
--------ClientTest.php(581B)
--------bootstrap.php(355B)
----phpunit.xml(549B)
----composer.json(1KB)
----src()
--------WebsocketErrorException.php(494B)
--------MessageSubject.php(6KB)
--------Server.php(5KB)
--------Client.php(5KB)
----.travis.yml(285B)