mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
add websocket client functions
This commit is contained in:
@@ -405,3 +405,7 @@ $socket->send('hello world', $event->getFd()); // 客户端的连接 fd 编号
|
||||
### zm_create_plugin()
|
||||
|
||||
创建一个炸毛单文件模式的插件对象,效果等同于 `new \ZM\Plugin\ZMPlugin()`。
|
||||
|
||||
### zm_websocket_client()
|
||||
|
||||
创建一个 WebSocket 客户端。详情见 [框架内置 WebSocket 客户端](/components/http/websocket-client)。
|
||||
|
||||
Reference in New Issue
Block a user