Dear Tyrus team,
I've just wanted to share with you our expirience of utilizing Tyrus
websocket java client inside Sandbox applet (the websocket server we
were testing with is WildFly/JBoss 8.1; not that relevant for the
discussion though).
To sum up the things, initially the websocket functionality didn't
function as expected due to Sandbox restrictions and security
limitations. In order to overcome those, we adjusted few Tyrus and
Grizzly projects source files and surprisingly enough successfully ran
our Sandbox applet within a browser. There were 2 major problems with
the existing codebase: access to system properties (restricted in
Sandbox except for few specific java properties) and some java
reflections code that behaves differently in Sandbox applet than in a
standalone application.
Please let me know whether the changes performed for the adjustment may
be candidates for the project pull request (so I will put them in a
pull request for both projects).
Alternatively, I can give you the exact details of what was changed in
the code and you can decide whether it is applicable/desirable for your
project or not.
Please let me know your thoughts on the topic and whether we can
contribute our findings to the community.
Thank you and with best regards,
Mark