Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coder/websocket
/ newMsgWriter
Function
newMsgWriter
write.go:66–73 ·
view source on GitHub ↗
(c *Conn)
Source
from the content-addressed store, hash-verified
64
}
65
66
func
newMsgWriter(c *Conn) *msgWriter {
67
mw := &msgWriter{
68
c: c,
69
mu: newMu(c),
70
writeMu: newMu(c),
71
}
72
return
mw
73
}
74
75
func
(mw *msgWriter) ensureFlate() {
76
if
mw.trimWriter == nil {
Callers
1
newConn
Function · 0.85
Calls
1
newMu
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…