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)))