MCPcopy
hub / github.com/ayn2op/discordo / close

Method close

internal/ui/login/qr/msg.go:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (m *Model) close() tview.Cmd {
52 return func() tview.Msg {
53 if m.conn != nil {
54 if err := m.conn.Close(); err != nil {
55 return newErrMsg(err)
56 }
57 }
58 return connCloseMsg{}
59 }
60}
61
62type helloMsg struct {
63 heartbeatInterval int

Callers 1

UpdateMethod · 0.95

Calls 1

newErrMsgFunction · 0.85

Tested by

no test coverage detected