MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / NewWSConnection

Function NewWSConnection

carrier/websocket.go:24–28  ·  view source on GitHub ↗

NewWSConnection returns a new connection object

(log *zerolog.Logger)

Source from the content-addressed store, hash-verified

22
23// NewWSConnection returns a new connection object
24func NewWSConnection(log *zerolog.Logger) Connection {
25 return &Websocket{
26 log: log,
27 }
28}
29
30// ServeStream will create a Websocket client stream connection to the edge
31// it blocks and writes the raw data from conn over the tunnel

Callers 4

StartForwarderFunction · 0.92
sshFunction · 0.92
TestStartClientFunction · 0.85
TestStartServerFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStartClientFunction · 0.68
TestStartServerFunction · 0.68