Skip to content

Commit e6a3097

Browse files
committed
add auth to websockets setup
1 parent 18f8aad commit e6a3097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

acp-ktor-server/src/commonMain/kotlin/com/agentclientprotocol/transport/AcpKtorServerExtensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ public fun Route.acpProtocolOnServerWebSocket(
3939
public fun Application.acpProtocolOnServerWebSocket(
4040
path: String = ACP_PATH,
4141
protocolOptions: ProtocolOptions,
42+
withAuth: Route.(Route.() -> Unit) -> Unit,
4243
block: suspend (Protocol) -> Unit
4344
) {
4445
routing {
45-
acpProtocolOnServerWebSocket(path, protocolOptions) { protocol ->
46+
acpProtocolOnServerWebSocket(path, protocolOptions, withAuth) { protocol ->
4647
block(protocol)
4748
}
4849
}

0 commit comments

Comments
 (0)