You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__Note:__ If you're on Windows, then replace the `:` (colon) in the classpath
43
-
in the commands above with a `;` (semicolon).
44
-
45
59
The chat client is a simple Swing GUI application that allows you to send
46
60
messages to all other connected clients, and receive messages from others in a
47
61
text box.
48
62
49
-
There's also a simple HTML file chat client `chat.html`, which can be opened
50
-
by any browser. If the browser natively supports the WebSocket API, then it's
63
+
In the example folder is also a simple HTML file chat client `chat.html`, which can be opened by any browser. If the browser natively supports the WebSocket API, then it's
51
64
implementation will be used, otherwise it will fall back to a
To see how to use wss please take a look at the examples.<br>
76
91
77
-
WSS support is still VERY young ( https://github.com/TooTallNate/Java-WebSocket/pull/101 ).
78
-
The only way to use wss is currently the one shown in the example. That also means that you have to switch between ws and wss.
79
-
You can not have both at the same time on the same port.
80
-
81
-
If you do not have a valid certificate in place then you will have to create a self signed one.
92
+
If you do not have a valid **certificate** in place then you will have to create a self signed one.
82
93
Browsers will simply refuse the connection in case of a bad certificate and will not ask the user to accept it.
83
-
So the first step will be to make a browser to accept your self signed certificate. ( https://bugzilla.mozilla.org/show_bug.cgi?id=594502 )
94
+
So the first step will be to make a browser to accept your self signed certificate. ( https://bugzilla.mozilla.org/show_bug.cgi?id=594502 ).<br>
84
95
If the websocket server url is `wss://localhost:8000` visit the url `htts://localhost:8000` with your browser. The browser will recognize the handshake and allow you to accept the certificate.
85
96
97
+
The vm option `-Djavax.net.debug=all` can help to find out if there is a problem with the certificate.
98
+
99
+
It is currently not possible to accept ws and wss conections at the same time via the same websocket server instance.
100
+
86
101
I ( @Davidiusdadi ) would be glad if you would give some feedback whether wss is working fine for you or not.
87
102
88
103
Minimum Required JDK
@@ -128,7 +143,7 @@ Getting Support
128
143
129
144
If you are looking for help using `Java-WebSocket` you might want to check out the
0 commit comments