public static WebsocketClientTransport create(InetSocketAddress address) {
    Objects.requireNonNull(address, "address must not be null");

    TcpClient client = TcpClient.create().addressSupplier(() -> address);
    return create(client);
  }
public static WebsocketClientTransport create ( InetSocketAddress address ) { Objects . requireNonNull ( address , "address must not be null" ) ; TcpClient client = TcpClient . create ( ) . addressSupplier ( ( ) -> address ) ; return create ( client ) ; }
Creates a new instance

@param address the address to connect to
@return a new instance
@throws NullPointerException if {@code address} is {@code null}