From 55bcb0866814bdbbf17d5eb74e2182ca408cea4a Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 23 May 2024 16:16:22 +0300 Subject: [PATCH] Force to use endpoint ID in `launchMagixService` --- .../kotlin/space/kscience/controls/client/controlsMagix.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls-magix/src/commonMain/kotlin/space/kscience/controls/client/controlsMagix.kt b/controls-magix/src/commonMain/kotlin/space/kscience/controls/client/controlsMagix.kt index 1c6f556..5fe99c3 100644 --- a/controls-magix/src/commonMain/kotlin/space/kscience/controls/client/controlsMagix.kt +++ b/controls-magix/src/commonMain/kotlin/space/kscience/controls/client/controlsMagix.kt @@ -40,7 +40,7 @@ internal fun generateId(request: MagixMessage): String = if (request.id != null) */ public fun DeviceManager.launchMagixService( endpoint: MagixEndpoint, - endpointID: String = controlsMagixFormat.defaultFormat, + endpointID: String, coroutineContext: CoroutineContext = EmptyCoroutineContext, ): Job = context.launch(coroutineContext) { endpoint.subscribe(controlsMagixFormat, targetFilter = listOf(endpointID, null)).onEach { (request, payload) ->