MCPcopy Create free account
hub / github.com/block/buzz / sendWsClose

Function sendWsClose

desktop/src/testing/e2eBridge.ts:2770–2774  ·  view source on GitHub ↗
(handler: WsHandler)

Source from the content-addressed store, hash-verified

2768}
2769
2770function sendWsClose(handler: WsHandler) {
2771 handler({
2772 type: "Close",
2773 });
2774}
2775
2776function getChannelIdFromTags(tags: string[][]): string | undefined {
2777 return tags.find((tag) => tag[0] === "h")?.[1];

Callers 3

connectRealSocketFunction · 0.85
sendToMockSocketFunction · 0.85
disconnectMockSocketFunction · 0.85

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected