Skip to content

Conversation

@kyrylo-pshenychnyi
Copy link
Contributor

This PR introduces Java and Kotlin examples for web socket data interceptions using JS-Java/Kotlin bridge.

Issue: https://github.com/TeamDev-IP/JxBrowser/issues/4829

Copy link
Contributor

@vladimir-ikryanov vladimir-ikryanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please apply the same changes to the Kotlin example.

return InjectJsCallback.Response.proceed();
});

browser.navigation().loadUrlAndWait("https://www.teamdev.com/jxbrowser#features");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes no sense to load this page as it doesn't use WebSockets AFAIK.

Copy link
Contributor Author

@kyrylo-pshenychnyi kyrylo-pshenychnyi Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the examples to use a local HTML file that manages the socket lifecycle. I propose making the examples UI-based.

kyrylo-pshenychnyi and others added 6 commits August 12, 2025 14:17
@kyrylo-pshenychnyi kyrylo-pshenychnyi merged commit 951988d into master Aug 13, 2025
1 check passed
@kyrylo-pshenychnyi kyrylo-pshenychnyi deleted the feature-add-websocket-interception-example branch August 13, 2025 09:28
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.

3 participants