I don't want to use a full Web Server like Apache Tomcat or any similar technology. I just need to provide a websocket server in my desktop app and allow a web page to connect to it, in the same machine, that's it.
I've been using TooTallNate library and everything is fine, but the problem comes when I try to communicate javascript using the HTTPS protocol, the error is something about:
Mixed Content: The page at 'https://localhost/projects/websocket/test/test.html#' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://localhost:38521'. This request has been blocked; this endpoint must be available over WSS. Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
The big problem comes when from a HTTPS page I try to establish communication to my Java desktop app. Because in that library there is not good and enough SSL/TLS support to solve this.
So, I need a minimal or clean library in Java to create a websocket server (with TLS support) and allow the communication of a web page via HTTPS and via HTTP.
I heard something about jetty. What do you think?