mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +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 {
|
override fun close() = registryLock.withLock {
|
||||||
val currentChannels = runningChannels.keys.toList()
|
val currentChannels = runningChannels.keys.toList()
|
||||||
|
|||||||
Reference in New Issue
Block a user