MCPcopy
hub / github.com/tinyplex/tinybase / createClient

Function createClient

test/unit/persisters/partykit.test.ts:107–119  ·  view source on GitHub ↗
(
  environment: MockEnvironment,
  config: PartyKitPersisterConfig = {},
)

Source from the content-addressed store, hash-verified

105};
106
107const createClient = (
108 environment: MockEnvironment,
109 config: PartyKitPersisterConfig = {},
110): [Store, PartyKitPersister] => {
111 const store = createStore();
112 return [
113 store,
114 createPartyKitPersister(store, environment.createSocket(), {
115 storeProtocol: 'http',
116 ...config,
117 }),
118 ];
119};
120
121describe('PartyKit persister integration', () => {
122 let fetchWas: typeof fetch;

Callers 2

partykit.test.tsFile · 0.85
databases.tsFile · 0.85

Calls 1

createStoreFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…