MCPcopy Index your code
hub / github.com/nodejs/node / createFrame

Function createFrame

deps/undici/undici.js:15821–15823  ·  view source on GitHub ↗
(data, hint)

Source from the content-addressed store, hash-verified

15819 }
15820 };
15821 function createFrame(data, hint) {
15822 return new WebsocketFrameSend(toBuffer(data, hint)).createFrame(hint === sendHints.text ? opcodes.TEXT : opcodes.BINARY);
15823 }
15824 __name(createFrame, "createFrame");
15825 function toBuffer(data, hint) {
15826 switch (hint) {

Callers 1

addMethod · 0.70

Calls 2

toBufferFunction · 0.70
createFrameMethod · 0.45

Tested by

no test coverage detected