Skip to content

Commit 607355d

Browse files
committed
rename to websocket-ensure-handshake
1 parent 38c1f20 commit 607355d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

websocket.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ to the websocket protocol.
730730
conn
731731
(websocket-sentinel url conn key protocols extensions custom-header-alist nowait))
732732
(set-process-query-on-exit-flag conn nil)
733-
(websocket-handshake url conn key protocols extensions custom-header-alist)
733+
(websocket-ensure-handshake url conn key protocols extensions custom-header-alist)
734734
websocket))
735735

736736
(defun websocket-sentinel (url conn key protocols extensions custom-header-alist nowait)
@@ -739,13 +739,13 @@ to the websocket protocol.
739739
(websocket-debug websocket "State change to %s" change)
740740
(let ((status (process-status process)))
741741
(when (and nowait (eq status 'open))
742-
(websocket-handshake url conn key protocols extensions custom-header-alist))
742+
(websocket-ensure-handshake url conn key protocols extensions custom-header-alist))
743743

744744
(when (and (member status '(closed failed exit signal))
745745
(not (eq 'closed (websocket-ready-state websocket))))
746746
(websocket-try-callback 'websocket-on-close 'on-close websocket))))))
747747

748-
(defun websocket-handshake (url conn key protocols extensions custom-header-alist)
748+
(defun websocket-ensure-handshake (url conn key protocols extensions custom-header-alist)
749749
(let ((url-struct (url-generic-parse-url url))
750750
(websocket (process-get conn :websocket)))
751751
(when (and (eq 'connecting (websocket-ready-state websocket))

0 commit comments

Comments
 (0)