@@ -36,7 +36,7 @@ import io.vertx.kotlin.coroutines.await
3636import kotlinx.coroutines.runBlocking
3737import spp.cli.PlatformCLI
3838import spp.protocol.ProtocolMarshaller.deserializeLiveInstrumentRemoved
39- import spp.protocol.SourceServices
39+ import spp.protocol.SourceServices.Provide.toLiveInstrumentSubscriberAddress
4040import spp.protocol.extend.TCPServiceFrameParser
4141import spp.protocol.instrument.event.LiveBreakpointHit
4242import spp.protocol.instrument.event.LiveInstrumentEvent
@@ -88,7 +88,7 @@ class SubscribeEvents : CliktCommand(
8888 ).await()
8989 socket!! .handler(FrameParser (TCPServiceFrameParser (vertx, socket)))
9090
91- vertx.eventBus().consumer<JsonObject >(SourceServices . Provide . LIVE_INSTRUMENT_SUBSCRIBER ) {
91+ vertx.eventBus().consumer<JsonObject >(toLiveInstrumentSubscriberAddress( PlatformCLI .developer.id) ) {
9292 val liveEvent = Json .decodeValue(it.body().toString(), LiveInstrumentEvent ::class .java)
9393
9494 // todo: impl filter on platform
@@ -157,7 +157,7 @@ class SubscribeEvents : CliktCommand(
157157 // register listener
158158 FrameHelper .sendFrame(
159159 BridgeEventType .REGISTER .name.lowercase(),
160- SourceServices . Provide . LIVE_INSTRUMENT_SUBSCRIBER , null ,
160+ toLiveInstrumentSubscriberAddress( PlatformCLI .developer.id) , null ,
161161 JsonObject ().apply { PlatformCLI .developer.accessToken?.let { put(" auth-token" , it) } },
162162 null , null , socket
163163 )
0 commit comments