disconnect()
Disconnect from the streaming endpoint.
Declaration
@MainActor func disconnect() async throwsDiscussion
This method should cleanly shut down the streaming connection and release any associated resources.
This function will be called exactly once for the lifetime of the process.