Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

No websocket support for swing: Cannot Open Socket on com.sun.net.httpserver.HttpServer

f1ec03ee-6414-4fd4-b83a-629ab79a0e41Jun 17 2015 — edited Jul 13 2015

When a JavaScript client attempts to open a socket, instead of the connection opening it immediately closes. The client is using:

webSocket = new WebSocket("ws://localhost/example");

The same thing happens for com.sun.net.httpserver.HttpsServer where client is using:

webSocket = new WebSocket("wss://localhost/example");

How can I enable websocket support?

If it's not possible, how can I request for it to be added as a new feature?

This post has been answered by f1ec03ee-6414-4fd4-b83a-629ab79a0e41 on Jun 25 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2015
Added on Jun 17 2015
3 comments
1,300 views