Function: claude-code-ide-mcp--send-ping

claude-code-ide-mcp--send-ping is a natively compiled function defined in claude-code-ide-mcp.el.

Signature

(claude-code-ide-mcp--send-ping SESSION)

Documentation

Send a ping frame to keep connection alive for SESSION.

Source Code

;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide-mcp.el
(defun claude-code-ide-mcp--send-ping (session)
  "Send a ping frame to keep connection alive for SESSION."
  (when-let* ((client (claude-code-ide-mcp-session-client session)))
    (condition-case err
        (websocket-send client
                        (make-websocket-frame :opcode 'ping
                                              :payload ""))
      (error
       (claude-code-ide-debug "Failed to send ping: %s" err)))))