mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(gateway): provide websocket as default agent gateway
This commit is contained in:
@@ -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 {
|
||||
val currentChannels = runningChannels.keys.toList()
|
||||
|
||||
Reference in New Issue
Block a user