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

Function createFrame

deps/undici/src/lib/web/websocket/sender.js:94–96  ·  view source on GitHub ↗
(data, hint)

Source from the content-addressed store, hash-verified

92}
93
94function createFrame (data, hint) {
95 return new WebsocketFrameSend(toBuffer(data, hint)).createFrame(hint === sendHints.text ? opcodes.TEXT : opcodes.BINARY)
96}
97
98function toBuffer (data, hint) {
99 switch (hint) {

Callers 1

addMethod · 0.70

Calls 2

toBufferFunction · 0.70
createFrameMethod · 0.45

Tested by

no test coverage detected