mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
Fix call to websocket-open
This commit is contained in:
parent
1323feb33f
commit
48730c0baf
1 changed files with 2 additions and 1 deletions
|
@ -188,6 +188,7 @@ Call the next method if ARGS does not contain :server."
|
|||
(defvar jupyter-server-websockets (make-hash-table :weakness 'key :test 'eq))
|
||||
|
||||
(defun jupyter-reauthenticate-websockets (server)
|
||||
"Re-authenticate WebSocket connections of SERVER."
|
||||
(let ((headers (jupyter-api-auth-headers server)))
|
||||
(setf (gethash server jupyter-server-websockets)
|
||||
(delq nil
|
||||
|
@ -195,7 +196,7 @@ Call the next method if ARGS does not contain :server."
|
|||
(lambda (ws)
|
||||
(when (websocket-openp ws)
|
||||
(websocket-close ws)
|
||||
(websocket-open
|
||||
(websocket-open (websocket-url ws)
|
||||
:on-open (websocket-on-open ws)
|
||||
:custom-header-alist headers)
|
||||
ws))
|
||||
|
|
Loading…
Add table
Reference in a new issue