11 lines
300 B
Kotlin
11 lines
300 B
Kotlin
|
package com.terraocean.plugin.bridge
|
||
|
|
||
|
import io.ktor.http.cio.websocket.send
|
||
|
import kotlinx.coroutines.MainScope
|
||
|
import kotlinx.coroutines.launch
|
||
|
|
||
|
fun reportPlayerActivity(username: String, activity: Long) {
|
||
|
MainScope().launch {
|
||
|
webSocketSession.send("active $username $activity")
|
||
|
}
|
||
|
}
|