Function
getProtocolForClient
(
clientProtocols: Map<number, McpProtocol.ProtocolAdapter>,
clientId: number,
registry: McpProtocolRegistry.ProtocolRegistry<McpProtocol.ProtocolAdapter>
)
Source from the content-addressed store, hash-verified
| 2365 | } |
| 2366 | |
| 2367 | const getProtocolForClient = ( |
| 2368 | clientProtocols: Map<number, McpProtocol.ProtocolAdapter>, |
| 2369 | clientId: number, |
| 2370 | registry: McpProtocolRegistry.ProtocolRegistry<McpProtocol.ProtocolAdapter> |
| 2371 | ): McpProtocol.ProtocolAdapter => |
| 2372 | clientProtocols.get(clientId) ?? |
| 2373 | registry.protocols[0] |
Tested by
no test coverage detected