MCPcopy
hub / github.com/nats-io/nats.go / bindToNewConn

Method bindToNewConn

nats.go:2161–2166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2159}
2160
2161func (nc *Conn) bindToNewConn() {
2162 bw := nc.bw
2163 bw.w, bw.bufs = nc.newWriter(), nil
2164 br := nc.br
2165 br.r, br.n, br.off = nc.conn, 0, -1
2166}
2167
2168func (nc *Conn) newWriter() io.Writer {
2169 var w io.Writer = nc.conn

Callers 3

wsInitHandshakeMethod · 0.95
createConnMethod · 0.95
makeTLSConnMethod · 0.95

Calls 1

newWriterMethod · 0.95

Tested by

no test coverage detected