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

Method close

write.go:266–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func (mw *msgWriter) close() {
267 if mw.c.client {
268 mw.c.writeFrameMu.forceLock()
269 putBufioWriter(mw.c.bw)
270 }
271
272 mw.writeMu.forceLock()
273 mw.putFlateWriter()
274}
275
276func (c *Conn) writeControl(ctx context.Context, opcode opcode, p []byte) error {
277 ctx, cancel := context.WithTimeout(ctx, time.Second*5)

Callers

nothing calls this directly

Calls 3

putFlateWriterMethod · 0.95
putBufioWriterFunction · 0.85
forceLockMethod · 0.45

Tested by

no test coverage detected