Fossil SCM

Additional documentation on the /chat-poll page.

drh 2020-12-23 16:19 chatroom-dev
Commit 2261b294155d856f43f08491f2b6c0d0e31636f3be8efa486493088590a282f2
1 file changed +4
+4
--- src/chat.c
+++ src/chat.c
@@ -229,10 +229,14 @@
229229
** /chat-poll/N
230230
**
231231
** If N is negative, then the return value is the N most recent messages.
232232
** Hence a request like /chat-poll/-100 can be used to initialize a new
233233
** chat session to just the most recent messages.
234
+**
235
+** Some webservers (althttpd) do not allow a term of the URL path to
236
+** begin with "-". Then /chat-poll/-100 cannot be used. Instead you
237
+** have to say "/chat-poll?name=-100".
234238
**
235239
** The reply from this webpage is JSON that describes the new content.
236240
** Format of the json:
237241
**
238242
** | {
239243
--- src/chat.c
+++ src/chat.c
@@ -229,10 +229,14 @@
229 ** /chat-poll/N
230 **
231 ** If N is negative, then the return value is the N most recent messages.
232 ** Hence a request like /chat-poll/-100 can be used to initialize a new
233 ** chat session to just the most recent messages.
 
 
 
 
234 **
235 ** The reply from this webpage is JSON that describes the new content.
236 ** Format of the json:
237 **
238 ** | {
239
--- src/chat.c
+++ src/chat.c
@@ -229,10 +229,14 @@
229 ** /chat-poll/N
230 **
231 ** If N is negative, then the return value is the N most recent messages.
232 ** Hence a request like /chat-poll/-100 can be used to initialize a new
233 ** chat session to just the most recent messages.
234 **
235 ** Some webservers (althttpd) do not allow a term of the URL path to
236 ** begin with "-". Then /chat-poll/-100 cannot be used. Instead you
237 ** have to say "/chat-poll?name=-100".
238 **
239 ** The reply from this webpage is JSON that describes the new content.
240 ** Format of the json:
241 **
242 ** | {
243

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button