connect
Opens a TapConnection and starts its liveness observation: if this process dies, the server detaches every device the connection owns. The observe stream is established before this returns (the first Observe event, observing, is awaited), so every later attachDevice belongs to a live connection. An empty stream, a closing first event or any failure before the first event fails the connect and closes the newly opened id under a bounded non-cancellable context. A later closing event (the daemon reaped this connection or is shutting down) makes the connection unusable with the daemon's reason.
The first connect of a client also checks the server's version: a server older than the engine this client was built against, or one with a missing/different API compatibility epoch, fails it with TapException before a connection is opened.