public boolean connectBlocking(long timeout, TimeUnit timeUnit) throws InterruptedException {
    """
	Same as <code>connect</code> but blocks with a timeout until the websocket connected or failed to do so.<br>
	@param timeout
	The connect timeout
	@param timeUnit
	The timeout time unit
	@return Returns whether it succeeded or not.
	@throws InterruptedException Thrown when the threads get interrupted
    """
		connect();
		return connectLatch.await(timeout, timeUnit) && engine.isOpen();
	}
public boolean connectBlocking(long timeout, TimeUnit timeUnit) throws InterruptedException {
		connect();
		return connectLatch.await(timeout, timeUnit) && engine.isOpen();
	}
public boolean connectBlocking ( long timeout , TimeUnit timeUnit ) throws InterruptedException { connect ( ) ; return connectLatch . await ( timeout , timeUnit ) && engine . isOpen ( ) ; }
Same as <code>connect</code> but blocks with a timeout until the websocket connected or failed to do so.<br>
@param timeout
The connect timeout
@param timeUnit
The timeout time unit
@return Returns whether it succeeded or not.
@throws InterruptedException Thrown when the threads get interrupted
Same as <code > connect< / code > but blocks with a timeout until the websocket connected or failed to do so . <br >