emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/web-server eb5d0cb 3/8: Fix ws-web-socket-connect's doc


From: Stefan Monnier
Subject: [elpa] externals/web-server eb5d0cb 3/8: Fix ws-web-socket-connect's docstring
Date: Sat, 27 Mar 2021 14:45:26 -0400 (EDT)

branch: externals/web-server
commit eb5d0cb7301ff342578b8c5d723fea3e522e1d4e
Author: Xu Chunyang <xuchunyang56@gmail.com>
Commit: Xu Chunyang <xuchunyang56@gmail.com>

    Fix ws-web-socket-connect's docstring
    
    The handler is called with (PROCESS STRING).
---
 web-server.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web-server.el b/web-server.el
index ede0ae6..df86419 100644
--- a/web-server.el
+++ b/web-server.el
@@ -381,9 +381,9 @@ in the request handler.  If no web-socket connection is
 established (e.g., because REQUEST is not attempting to establish
 a connection) then no actions are taken and nil is returned.
 
-Second argument HANDLER should be a function of one argument
-which will be called on all complete messages as they are
-received and parsed from the network."
+Second argument HANDLER should be a function of two arguments,
+the process and a string, which will be called on all complete
+messages as they are received and parsed from the network."
   (with-slots (process headers) request
     (when (assoc :SEC-WEBSOCKET-KEY headers)
       ;; Accept the connection



reply via email to

[Prev in Thread] Current Thread [Next in Thread]