watch

suspend fun watch(request: StringResource, longName: String, onNak: (requestId: Int, routingError: Int) -> Unit = { _, _ -> }, send: suspend (requestId: Int) -> Unit)(source)

Runs send with a fresh packet id, watching for a NAK to that id from before the send until WINDOW after. onNak gets the request id and routing error before the snackbar shows.