Skip to content

Add Java WebSocket monitoring - #375

Merged
vincebln2 merged 3 commits into
VibiumDev:mainfrom
vincebln2:fix/java-websocket-368
Aug 19, 2026
Merged

Add Java WebSocket monitoring#375
vincebln2 merged 3 commits into
VibiumDev:mainfrom
vincebln2:fix/java-websocket-368

Conversation

@vincebln2

Copy link
Copy Markdown
Collaborator

Fixes #368.

Adds Java WebSocket lifecycle monitoring with the same created, message, and close events as the JavaScript and Python clients.

The setup call completes synchronously before onWebSocket returns, so a socket opened immediately afterward cannot race monitor installation as described in #351. Monitoring persists across navigation, and removeAllListeners("websocket") stops callback delivery.

Tests cover immediate socket creation, sent and received messages, close metadata, navigation persistence, and listener cleanup.

Validation: ./gradlew validateCapabilityMarkers compileTestJava

@vincebln2
vincebln2 merged commit 6ccc452 into VibiumDev:main Aug 19, 2026
3 checks passed
@vincebln2
vincebln2 deleted the fix/java-websocket-368 branch August 21, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java client: make WebSocket events functional

1 participant