Skip to content

Releases: cloudtay/ripple-websocket

v1.0.3-beta

Choose a tag to compare

@ccobcode ccobcode released this 23 Feb 15:58

Full Changelog: v1.0.1...v1.0.3

修复

  • 连接修复query参数丢失问题

新特性

  • Client 支持通过代理连接websocket
  • Client 支持快捷自定义header
new Client(address: 'ws://127.0.0.01:2001', timeout:10, options:[
    'proxy' => 'socks5://127.0.0.1:1080'
]);

v1.0.1

Choose a tag to compare

@ccobcode ccobcode released this 17 Jan 19:52

Full Changelog: v1.0.0...v1.0.1

更新内容

  • 所有回调声明从函数声明改为属性声明
$server->onConnect(function(){}); // 已弃用
$server->onConnect = function (){}; // 新的方式
  • 删除 Server 对 $connections 属性的维护
  • 删除 Server 的广播方法
  • 删除 Server::onMessage 与 Server::onClose 方法

请对 Server::onMessage 或 Server::onRequest 中得到的 $connection 进行声明
如$connection->onClose / $connection->onMessage

  • 更新 对Clinet::__construct(Request|string $request) 支持自定义Request对象
  • 新增 回调属性声明参数验证: 所有参数顺序异常在声明(__set)时就会抛出
  • 新增 对gzip扩展功能的单元测试

v1.0.0

Choose a tag to compare

@ccobcode ccobcode released this 02 Nov 14:14