We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a10ec commit 3e3d91dCopy full SHA for 3e3d91d
src/main/java/org/java_websocket/WebSocketImpl.java
@@ -831,7 +831,7 @@ public boolean hasSSLSupport() {
831
@Override
832
public SSLSession getSSLSession() {
833
if (!hasSSLSupport()) {
834
- throw new IllegalStateException("This websocket does use ws instead of wss. No SSLSession available.");
+ throw new IllegalArgumentException("This websocket uses ws instead of wss. No SSLSession available.");
835
}
836
return ((ISSLChannel) channel).getSSLEngine().getSession();
837
0 commit comments