MCPcopy Index your code
hub / github.com/coder/websocket / uint8Array

Function uint8Array

internal/wsjs/wsjs_js.go:165–169  ·  view source on GitHub ↗
(src []byte)

Source from the content-addressed store, hash-verified

163}
164
165func uint8Array(src []byte) js.Value {
166 uint8Array := js.Global().Get("Uint8Array").New(len(src))
167 js.CopyBytesToJS(uint8Array, src)
168 return uint8Array
169}

Callers 1

SendBytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…