From 4b9e63cb250097e48ad76d7b4b189f2e22feb7a1 Mon Sep 17 00:00:00 2001 From: Jakub Date: Sat, 9 May 2026 13:22:26 +0800 Subject: [PATCH] rename send-message to not conflict with future function names --- gomuks.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gomuks.el b/gomuks.el index 6e4fb6a..9e09741 100644 --- a/gomuks.el +++ b/gomuks.el @@ -91,7 +91,7 @@ 0 15 (lambda () - (gomuks-send-message "ping"))) + (gomuks-ws-send-message "ping"))) :websocket (websocket-open gomuks-ws-endpoint :custom-header-alist @@ -129,7 +129,7 @@ (cancel-timer gomuks-ping-timer) (websocket-close gomuks-websocket)) -(defun gomuks-send-message (command &optional data) +(defun gomuks-ws-send-message (command &optional data) "Send a message down the gomuks websocket, automatically incrementing the session transaction ID. `command' is the command string to send, and `data' is an alist that is converted to JSON as required by the command." (setf (gomuks-session-transaction-id gomuks-current-session) (+ 1 (gomuks-session-transaction-id gomuks-current-session)))