v1.2.0 of websocket_core

2026-01-13T04:09:24.432723Z

1.2.0 was published on Jan 13, 2026.

Changelog excerpt:
- **Major DX Improvements**:

- **Request-Response (RPC) Pattern**: Added `client.request()`method that returns a `Future`. Clients can now await responses from the server, behaving like a standard HTTP call but over the persistent WebSocket connection.
- **Auto-Reply Handler**: Server handlers can now return `Future<dynamic>`(e.g., a `Map`or `List`). If a value is returned, the server automatically sends it back to the client as a response. This eliminates the need to manually construct `WsMessage`for simple replies.
- **Controllers**: Introduced `WsController`abstract class and `server.registerController()`to better organize route logic in larger applications.

- **Client**:

- Added `_pendingRequests`management to `WsClient`.
- Added internal `UuidGenerator`for correlation IDs in requests.
- Updated `WsClient`to automatically match responses using `correlationId`.

- **Server**:

- Updated `WsHandler`typedef to allow `dynamic`return types.
- Updated `WsDispat[...]