spring_boot_starter_websocket 0.1.7
spring_boot_starter_websocket: ^0.1.7 copied to clipboard
Declarative WebSocket clients for spring_boot_dart: an interface with @WebSocketClient, @OnMessage and @SendMessage becomes a bean; JSON via ObjectMapper, reconnection.
0.1.7 #
spring.websocket.client.config.*keys with relaxed names:connectTimeout,reconnect.maxRetries,defaultRequestHeaders.X-Shop, environment variables- Breaking: the reconnect properties are named like Spring 7's
RetryPolicy, underreconnect.*:reconnect→reconnect.enabled,reconnect-delay→reconnect.delay,max-reconnect-delay→reconnect.max-delay,max-attempts→reconnect.max-retries(retries after the first attempt:max-attempts=Nismax-retries=N-1); newreconnect.multiplier(default 2) andreconnect.jitter(default none), computed like Spring'sExponentialBackOff. - Breaking:
WebSocketClientConfig.reconnectis aWebSocketReconnectPolicy(enabled,delay,multiplier,maxDelay,jitter,maxRetries,delayFor(retry));reconnectDelay,maxReconnectDelayandmaxAttemptsare gone. - Breaking: the reconnecting
WebSocketSessionis nowWebSocketConnectionManager(Spring's name;isOpen→isConnected,send→sendMessage),WebSocketInvocationHandler.session→connectionManager;WebSocketSessionis nowspring_web_dart's open connection (formerlyWebSocketConnection).
0.1.6 #
- update road map
- ci: release with a button on main, skip new packages when publishing; shorter pubspec descriptions
0.1.5 #
- Initial version: @WebSocketClient interfaces with @OnMessage streams and @SendMessage methods, JSON through ObjectMapper, one shared connection per client opened on demand, reconnection with backoff, handshake interceptors, spring.websocket.client.config.* properties.