MCPcopy
hub / github.com/cloudflare/cloudflared / NewConn

Function NewConn

websocket/connection.go:91–98  ·  view source on GitHub ↗
(ctx context.Context, rw io.ReadWriter, log *zerolog.Logger)

Source from the content-addressed store, hash-verified

89}
90
91func NewConn(ctx context.Context, rw io.ReadWriter, log *zerolog.Logger) *Conn {
92 c := &Conn{
93 rw: rw,
94 log: log,
95 }
96 go c.pinger(ctx)
97 return c
98}
99
100// Read will read messages from the websocket connection
101func (c *Conn) Read(reader []byte) (int, error) {

Callers 4

wsEchoEndpointFunction · 0.92
wsFlakyEndpointFunction · 0.92
StreamMethod · 0.92
StreamMethod · 0.92

Calls 1

pingerMethod · 0.95

Tested by 2

wsEchoEndpointFunction · 0.74
wsFlakyEndpointFunction · 0.74