websocket-php:PHP中的WebSocket客户端和服务器

时间:2021-05-13 10:34:02
【文件属性】:
文件名称:websocket-php:PHP中的WebSocket客户端和服务器
文件大小:59KB
文件格式:ZIP
更新时间:2021-05-13 10:34:02
PHP 适用于PHP的Websocket客户端和服务器 该库包含用于PHP的WebSocket客户端和服务器。 客户端和服务器提供用于读取和写入WebSocket流的方法。 它不包括诸如侦听器和隐式错误处理之类的便利操作。 文献资料 正在安装 首选的安装方式是 。 composer require textalk/websocket 当前版本支持PHP版本^7.2|8.0 。 对于PHP 7.1支持,请使用1.4版。 对于PHP ^5.4和7.0支持,请使用1.3版。 客户 可以在WebSocket流上读写。 它在内部支持升级握手以及隐式关闭和ping / pong操作。 $ client = new WebSocket \ Client ( "ws://echo.websocket.org/" ); $ client -> text ( "Hello WebSocket.org!"
【文件预览】:
websocket-php-master
----.gitignore(74B)
----Makefile(643B)
----.travis.yml(136B)
----COPYING.md(846B)
----composer.json(737B)
----.github()
--------ISSUE_TEMPLATE()
----examples()
--------echoserver.php(3KB)
--------send.php(1KB)
--------random_server.php(3KB)
--------random_client.php(3KB)
----README.md(2KB)
----tests()
--------ExceptionTest.php(1KB)
--------mock()
--------bootstrap.php(123B)
--------MessageTest.php(2KB)
--------scripts()
--------README.md(650B)
--------ServerTest.php(17KB)
--------ClientTest.php(17KB)
----lib()
--------Message()
--------TimeoutException.php(84B)
--------Server.php(5KB)
--------Client.php(8KB)
--------Exception.php(68B)
--------ConnectionException.php(530B)
--------BadUriException.php(73B)
--------Base.php(14KB)
--------BadOpcodeException.php(76B)
----codestandard.xml(238B)
----phpunit.xml.dist(378B)
----docs()
--------Contributing.md(1KB)
--------Client.md(5KB)
--------Examples.md(3KB)
--------Server.md(5KB)
--------Changelog.md(3KB)
--------Message.md(2KB)

网友评论