TAKServerManager

Properties

Link copied to clipboard
abstract val connectionCount: StateFlow<Int>
Link copied to clipboard
abstract val inboundMessages: SharedFlow<InboundCoTMessage>
Link copied to clipboard
abstract val isRunning: StateFlow<Boolean>

Functions

Link copied to clipboard
abstract fun broadcast(cotMessage: CoTMessage)
Link copied to clipboard
abstract fun broadcastRawXml(xml: String)

Broadcast raw XML verbatim to TAK clients, bypassing CoTMessage parsing.

Link copied to clipboard
abstract fun start(scope: CoroutineScope)

Start the TAK server using scope. Port is fixed at TAKServer construction time.

Link copied to clipboard
abstract fun stop()