https://kotlinlang.org logo
#ktor
Title
# ktor
b

brabo-hi

03/16/2023, 5:59 AM
Hi guys, what is the best way to get the number of active connect to a ktor server application
q

Quap

03/17/2023, 11:35 PM
This might help you, I'm no expert, but I'd use a similar approach for active HTTP connections, if you only care about the total versus holding each connection you could just use a counter var https://ktor.io/docs/websocket.html#handle-multiple-session
b

brabo-hi

03/20/2023, 6:36 PM
@Quap thanks for sharing
3 Views