refactor(gateway): provide websocket as default agent gateway

This commit is contained in:
2026-05-02 22:46:14 +08:00
parent 9e33f16aae
commit 1564c7d5e1

View File

@@ -68,7 +68,10 @@ object AgentGatewayRegistry : Configurable, ConfigRegistration<AgentGatewayRegis
} }
} }
override fun defaultConfig(): AgentGatewayRegistryConfig? = null override fun defaultConfig(): AgentGatewayRegistryConfig = AgentGatewayRegistryConfig(
"websocket_channel",
listOf(AgentGatewayChannelConfig("websocket_channel", emptyMap()))
)
override fun close() = registryLock.withLock { override fun close() = registryLock.withLock {
val currentChannels = runningChannels.keys.toList() val currentChannels = runningChannels.keys.toList()