MCPcopy
hub / github.com/nodejs/undici / createFrame

Function createFrame

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.85

Calls 2

toBufferFunction · 0.85
createFrameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…