Skip to content

Commit e0d6747

Browse files
committed
updated README.markdown: added wss section
1 parent 6cfd383 commit e0d6747

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.markdown

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ implementation will be used, otherwise it will fall back to a
5555
Writing your own WebSocket Server
5656
---------------------------------
5757

58-
The `net.tootallnate.websocket.WebSocketServer` abstract class implements the
58+
The `org.java_websocket.server.WebSocketServer` abstract class implements the
5959
server-side of the
6060
[WebSocket Protocol](http://www.whatwg.org/specs/web-socket-protocol/).
6161
A WebSocket server by itself doesn't do anything except establish socket
@@ -65,12 +65,25 @@ connections though HTTP. After that it's up to **your** subclass to add purpose.
6565
Writing your own WebSocket Client
6666
---------------------------------
6767

68-
The `net.tootallnate.websocket.WebSocketClient` abstract class can connect to
68+
The `org.java_websocket.server.WebSocketClient` abstract class can connect to
6969
valid WebSocket servers. The constructor expects a valid `ws://` URI to
7070
connect to. Important events `onOpen`, `onClose`, `onMessage` and `onIOError`
7171
get fired throughout the life of the WebSocketClient, and must be implemented
7272
in **your** subclass.
7373

74+
WSS Support
75+
---------------------------------
76+
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.
82+
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 )
84+
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+
86+
I ( @Davidiusdadi ) would be glad if you would give some feedback whether wss is working fine for you or not.
7487

7588
Minimum Required JDK
7689
--------------------

0 commit comments

Comments
 (0)