MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getTransport

Function getTransport

src/stores/apiServer.ts:239–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239function getTransport(): ApiTransport {
240 if (IS_ELECTRON && typeof window !== 'undefined' && window.apiServerApi) {
241 return createElectronTransport()
242 }
243 return createWebTransport()
244}
245
246// ==================== Store ====================
247

Callers 1

apiServer.tsFile · 0.85

Calls 2

createElectronTransportFunction · 0.85
createWebTransportFunction · 0.85

Tested by

no test coverage detected