源文件名全部改为蛇形命名,public 类型名与 import 路径不变;README 目录结构同步更新;版本升级 1.2.0

This commit is contained in:
2026-08-25 12:03:46 +08:00
parent bcaf3d76a2
commit cbfa3fcbdc
9 changed files with 13 additions and 8 deletions
+7 -7
View File
@@ -40,15 +40,15 @@ import simcu::websocket.common.WebSocketMessage
src/
├── websocket.cj # 模块锚点
├── common/
│ ├── WsTypes.cj # WebSocketMessage / ReadyState / WebSocketException / CloseCodes / WsEvents
│ └── FrameStream.cj # RFC 6455 帧层(握手工具、掩码、分片重组、maxPayload)
│ ├── ws_types.cj # WebSocketMessage / ReadyState / WebSocketException / CloseCodes / WsEvents
│ └── frame_stream.cj # RFC 6455 帧层(握手工具、掩码、分片重组、maxPayload)
├── client/
│ └── WebSocketClient.cj # 客户端
│ └── websocket_client.cj # 客户端
├── server/
│ ├── IWebsocketHandler.cj # 服务端 handler 接口(onConnect/onMessage/onClose/onError
│ ├── WebSocketServer.cj # 监听 / 握手 / 按路径路由 / 广播 / 组存储
│ ├── WebSocketSenders.cj # 链式门面(组管理 + 组播/单播发送的实现)
│ └── WebSocketConnection.cj # 服务端单条连接
│ ├── i_websocket_handler.cj # 服务端 handler 接口(onConnect/onMessage/onClose/onError
│ ├── websocket_server.cj # 监听 / 握手 / 按路径路由 / 广播 / 组存储
│ ├── websocket_senders.cj # 链式门面(组管理 + 组播/单播发送的实现)
│ └── websocket_connection.cj # 服务端单条连接
└── tests/
└── websocket_test.cj # 端到端集成测试
```