branch: externals/websocket commit da237af723a92879a197d222226743688f524d50 Author: Andrew Hyatt <ahy...@gmail.com> Commit: Andrew Hyatt <ahy...@gmail.com>
Fix confusing documentation string in `websocket-openp'. --- websocket.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/websocket.el b/websocket.el index 6a1754de02..ffd22f4e73 100644 --- a/websocket.el +++ b/websocket.el @@ -567,9 +567,7 @@ the `websocket-error' condition." (websocket-encode-frame frame (not (websocket-server-p websocket))))) (defun websocket-openp (websocket) - ;; FIXME: "open and either connecting or open"? I don't understand. --Stef - "Check WEBSOCKET and return non-nil if it is open, and either -connecting or open." + "Check WEBSOCKET and return non-nil if the connection is open." (and websocket (not (eq 'close (websocket-ready-state websocket))) (member (process-status (websocket-conn websocket)) '(open run))))