MCPcopy Create free account
hub / github.com/CommE2E/comm / protocols

Function protocols

lib/shared/threads/protocols/thread-protocols.js:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { threadSpecs } from '../thread-specs.js';
10
11const protocols = (): $ReadOnlyArray<ThreadProtocol<any>> => [
12 farcasterThreadProtocol,
13 dmThreadProtocol,
14 keyserverThreadProtocol,
15];
16
17function getProtocolByThreadID(threadID: string): ?ThreadProtocol<any> {
18 return protocols().find(p => p.threadIDMatchesProtocol(threadID));

Calls

no outgoing calls

Tested by

no test coverage detected