Jeremie Fraeys
|
c17811cf2b
|
refactor(cli): create modular WebSocket client structure
Break monolithic client.zig (1,558 lines) into focused modules:
- connection.zig: Transport, connection logic, URL parsing, TLS setup
- messaging.zig: MessageBuilder, validation, send methods
- state.zig: ClientState, response handling, error conversion
- mod.zig: Public exports and Client struct composition
Benefits:
- Each module <400 lines (maintainability target)
- Clear separation of concerns
- Easier to test individual components
- Foundation for future client refactoring
Original client.zig kept intact for backward compatibility.
Build passes successfully.
|
2026-03-04 20:58:11 -05:00 |
|