Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions fern/products/sdks/overview/java/changelog/2025-11-07.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## 3.14.0
**`(feat):`** Add support for WebSocket channels with bidirectional communication. Generated WebSocket clients
provide automatic reconnection with exponential backoff, strongly-typed message handlers, and message
queuing during disconnections. Clients are accessible via factory methods in subpackage clients.

```java
// Create WebSocket client with path and query parameters
RealtimeWebSocketClient ws = client.realtime().realtimeWebSocket(
"session-123",
Optional.of("gpt-4"),
Optional.of(0)
);

// Register handlers and connect
ws.onReceive(message -> System.out.println("Received: " + message.getAlpha()));
ws.onConnected(() -> System.out.println("Connected!"));
ws.connect().get();

// Send typed messages
ws.sendSend(SendEvent.builder()
.sendText("Hello WebSocket!")
.sendParam(42)
.build());
```