[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/websocket 7422064ea6 035/114: Add a way to specify webs
From: |
ELPA Syncer |
Subject: |
[elpa] externals/websocket 7422064ea6 035/114: Add a way to specify websocket-server listen host |
Date: |
Wed, 15 Feb 2023 20:58:57 -0500 (EST) |
branch: externals/websocket
commit 7422064ea6d39dc256fd4e583f13579602772536
Author: Christopher Warrington <christopher@mygcw.net>
Commit: Christopher Warrington <christopher@mygcw.net>
Add a way to specify websocket-server listen host
This adds the `:host' keyword to `websocket-server', which lets the
listen host be controlled. This is useful when you only want to listen
on localhost, potentially avoiding things like firewall prompts.
---
websocket.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/websocket.el b/websocket.el
index 1b0b29436a..3b048da95c 100644
--- a/websocket.el
+++ b/websocket.el
@@ -820,6 +820,11 @@ of populating the list of server extensions to WEBSOCKET."
(defun* websocket-server (port &rest plist)
"Open a websocket server on PORT.
+If the plist contains a `:host' HOST pair, this value will be
+used to configure the addresses the socket listens on. The symbol
+`local' specifies the local host. If unspecified or nil, the
+socket will listen on all addresses.
+
This also takes a plist of callbacks: `:on-open', `:on-message',
`:on-close' and `:on-error', which operate exactly as documented
in the websocket client function `websocket-open'. Returns the
@@ -833,6 +838,7 @@ connection, which should be kept in order to pass to
:log 'websocket-server-accept
:filter-multibyte nil
:plist plist
+ :host (plist-get plist :host)
:service port)))
conn))
- [elpa] externals/websocket b9ae25843a 016/114: Fix breaking test., (continued)
- [elpa] externals/websocket b9ae25843a 016/114: Fix breaking test., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 01c8d98f69 011/114: * websocket.el: Remove use of buffers in connections. This simplifies, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 111febe203 020/114: Fix `websocket-version': update to 1.3, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 9aad2f754f 022/114: Add supports for <32 bit emacs., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket dba6893ec5 023/114: Bump version to 1.4, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 965fac0fe5 027/114: add markdown preview mode, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 49a93b2218 028/114: Merge pull request #39 from ancane/master, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 90b9f03da0 029/114: Correctly parse fragmented HTTP header, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 8299e57a4c 033/114: Function test improvements for Windows: SIGSTP, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 4f8ddb64bc 034/114: Merge pull request #43 from chwarr/func-test-windows-sigstp, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 7422064ea6 035/114: Add a way to specify websocket-server listen host,
ELPA Syncer <=
- [elpa] externals/websocket 923e74d686 038/114: Merge pull request #40 from ilysym/fragmented-header, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket f7d3fb5409 045/114: Fix issue with handling multibyte characters., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket ccbe93ac8b 049/114: Stop checking certs in functional test., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 33d0406901 057/114: Reflow function documentation., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 268a0726b8 062/114: execute handshake after process status moved to open, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket c045acb374 039/114: Add test for fragmented headers., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket f18bfea59b 043/114: Made functional tests compile cleanly., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 23ec19933d 050/114: Various idiomatic changes., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 99d3b3e695 053/114: need another sleep on my environment, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket c193d6f867 058/114: Add ability for clients to pass custom headers., ELPA Syncer, 2023/02/15