Skip to content

Built-in Connection Verifier #140

Description

@Max-Meldrum

I looked through the docs and code, but I don't think there is currently such as feature (my bad if I missed it).
If we say that I have a client application and want to connect to a service. If there is no valid connection to the target Component, then the application should exit...

let client_path: ActorPath = NamedPath::with_socket(Transport::Tcp, client_sock, vec!["client".into()]).into();

client_path
  .check_connection()
  .wait_expect(Duration::from_millis(1000),  "Failed to connect to client at address X");

I think I have seen built-in Hello/Ping messages in Kompact, perhaps we could use them to check?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions