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

Method SendDisconnect

connection/observer.go:97–99  ·  view source on GitHub ↗
(connIndex uint8)

Source from the content-addressed store, hash-verified

95}
96
97func (o *Observer) SendDisconnect(connIndex uint8) {
98 o.sendEvent(Event{Index: connIndex, EventType: Disconnected})
99}
100
101func (o *Observer) sendEvent(e Event) {
102 select {

Callers 1

serveTunnelMethod · 0.80

Calls 1

sendEventMethod · 0.95

Tested by

no test coverage detected