0.2.0 #71
@ -4,7 +4,7 @@ plugins {
|
|||||||
// kotlin("js") version "1.5.30" apply false
|
// kotlin("js") version "1.5.30" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
val dataforgeVersion by extra("0.5.2-dev-2")
|
val dataforgeVersion by extra("0.5.2-dev-3")
|
||||||
val fxVersion by extra("11")
|
val fxVersion by extra("11")
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
@ -17,7 +17,7 @@ import space.kscience.visionforge.html.VisionTagConsumer.Companion.OUTPUT_ENDPOI
|
|||||||
import space.kscience.visionforge.html.VisionTagConsumer.Companion.OUTPUT_FETCH_ATTRIBUTE
|
import space.kscience.visionforge.html.VisionTagConsumer.Companion.OUTPUT_FETCH_ATTRIBUTE
|
||||||
import space.kscience.visionforge.html.VisionTagConsumer.Companion.OUTPUT_NAME_ATTRIBUTE
|
import space.kscience.visionforge.html.VisionTagConsumer.Companion.OUTPUT_NAME_ATTRIBUTE
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration.Companion.milliseconds
|
||||||
|
|
||||||
public class VisionClient : AbstractPlugin() {
|
public class VisionClient : AbstractPlugin() {
|
||||||
override val tag: PluginTag get() = Companion.tag
|
override val tag: PluginTag get() = Companion.tag
|
||||||
@ -105,7 +105,7 @@ public class VisionClient : AbstractPlugin() {
|
|||||||
onopen = {
|
onopen = {
|
||||||
feedbackJob = vision.flowChanges(
|
feedbackJob = vision.flowChanges(
|
||||||
visionManager,
|
visionManager,
|
||||||
Duration.Companion.milliseconds(300)
|
300.milliseconds
|
||||||
).onEach { change ->
|
).onEach { change ->
|
||||||
send(visionManager.encodeToString(change))
|
send(visionManager.encodeToString(change))
|
||||||
}.launchIn(visionManager.context)
|
}.launchIn(visionManager.context)
|
||||||
|
Loading…
Reference in New Issue
Block a user