How do we set Host option in workflow client in temporal?

Hi,
I do not see an option to set host in temporal

val client: WorkflowClient = WorkflowClient.newInstance

Thanks

1 Like

It is indeed not obvious as it is done through WorkflowServiceStubOptions:

 WorkflowServiceStubsOptions options =
        WorkflowServiceStubsOptions.newBuilder().setTarget("host:port").build();
 WorkflowServiceStubs stubs = WorkflowServiceStubs.newInstance(options);
 WorkflowClient client = WorkflowClient.newInstance(stubs);
2 Likes

Ok thank you @maxim

1 Like