The API behave correctly, but in its javadoc it states "
Throws:
IllegalArgumentException - if the uri is not a WebSocket
URISecurityException - if running under a security manager and the caller does not have permission to access the default HttpClient"
I think it is necessary to state if NPE will be thrown if null is specified
Throws:
IllegalArgumentException - if the uri is not a WebSocket
URISecurityException - if running under a security manager and the caller does not have permission to access the default HttpClient"
I think it is necessary to state if NPE will be thrown if null is specified