TAKServerManager

Properties

Link copied to clipboard
abstract val connectionCount: StateFlow<Int>
Link copied to clipboard
abstract val inboundMessages: SharedFlow<CoTMessage>
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 broadcastNode(node: Node, team: String = DEFAULT_TAK_TEAM_NAME, role: String = DEFAULT_TAK_ROLE_NAME)
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()