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

Method sendHeartbeat

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

Source from the content-addressed store, hash-verified

160}
161
162func (m *Model) sendHeartbeat() tview.Cmd {
163 return func() tview.Msg {
164 if m.conn == nil {
165 return nil
166 }
167 data := struct {
168 Op string `json:"op"`
169 }{"heartbeat"}
170 if err := m.conn.WriteJSON(data); err != nil {
171 return newErrMsg(err)
172 }
173 return nil
174 }
175}
176
177type privateKeyMsg struct {
178 privateKey *rsa.PrivateKey

Callers 1

UpdateMethod · 0.95

Calls 1

newErrMsgFunction · 0.85

Tested by

no test coverage detected