MCPcopy Create free account
hub / github.com/Snapchat/Valdi / encodePingFrame

Function encodePingFrame

npm_modules/cli/test/hermesClient.spec.ts:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function encodePingFrame(): Buffer {
43 const buf = Buffer.alloc(2);
44 buf[0] = 0x89; // FIN + ping opcode
45 buf[1] = 0x00; // no payload
46 return buf;
47}
48
49/** Spin up a minimal WebSocket server on a random port. */
50function createMockHermesServer(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected