MCPcopy Index your code
hub / github.com/gobwas/ws / MustWriteFrame

Function MustWriteFrame

write.go:100–104  ·  view source on GitHub ↗

MustWriteFrame is like WriteFrame but panics if frame can not be read.

(w io.Writer, f Frame)

Source from the content-addressed store, hash-verified

98
99// MustWriteFrame is like WriteFrame but panics if frame can not be read.
100func MustWriteFrame(w io.Writer, f Frame) {
101 if err := WriteFrame(w, f); err != nil {
102 panic(err)
103 }
104}

Callers 1

Calls 1

WriteFrameFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…