MCPcopy Create free account
hub / github.com/wevm/viem / socketClient

Function socketClient

src/utils/rpc/socket.test.ts:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 let count = 0
27
28 const socketClient = async () =>
29 getSocketRpcClient({
30 key: 'test-socket',
31 async getSocket() {
32 count++
33 return {
34 count,
35 close() {},
36 request() {},
37 }
38 },
39 url: anvilMainnet.rpcUrl.ws,
40 })
41
42 const [client1, client2, client3, client4] = await Promise.all([
43 socketClient(),

Callers 1

socket.test.tsFile · 0.85

Calls 1

getSocketRpcClientFunction · 0.85

Tested by

no test coverage detected