docs: public WebSocket createSocket(String uri, int timeout) throws IOException
      {
          if (uri == null)
          {
              throw new IllegalArgumentException("The given URI is null.");
          }
  
          if (timeout < 0)
          {
              throw new IllegalArgumentException("The given timeout value is negative.");
          }
  
          return createSocket(URI.create(uri), timeout);
      }