Sébastien Helleu
dd9ef2f4d9
tests: add missing include of string.h
2026-06-08 23:17:19 +02:00
Sébastien Helleu
551c12e049
relay/api: add resource GET /api/scripts
2026-06-08 23:04:40 +02:00
Sébastien Helleu
befbcceb7f
relay/api: add field "last_read_line_id" in GET /api/buffers
2026-06-06 07:04:46 +02:00
Sébastien Helleu
f53e7fb9ef
core, plugins: fix typos in comments on functions, use imperative
2026-03-23 20:45:36 +01:00
Sébastien Helleu
106fe6ca7c
core: update copyright dates
2026-03-08 10:37:15 +01:00
Sébastien Helleu
e6646d1ef1
relay/api: return HTTP error 404 instead of 400 when the buffer is not found in resources completion and input
2025-11-13 07:12:55 +01:00
Sébastien Helleu
58c873809b
relay/api: return an error 400 when URL parameter "colors" has an invalid value
2025-10-26 07:22:10 +01:00
Sébastien Helleu
1db29cb1ed
relay/api: reject any invalid or unknown password hash algorithm in handshake resource
2025-07-02 20:32:09 +02:00
Sébastien Helleu
4348036e2e
tests: remove duplicated "HTTP/1.1" in some relay API tests
2025-07-02 20:32:09 +02:00
Sébastien Helleu
93ec10b563
relay/api: return HTTP error 405 (Method Not Allowed) when the method received is not allowed
2025-07-02 20:32:09 +02:00
Sébastien Helleu
9783256649
relay/api: use specifier %@ for times formatted by util_strftimeval
2025-05-18 22:15:39 +02:00
Sébastien Helleu
a1cbe63a42
tests: move CMake file, main C++/headers for tests and scripts to unit directory
2025-05-05 13:18:34 +02:00
Sébastien Helleu
2475f20cb7
all: move description of C files below the copyright and license
2025-03-31 11:47:49 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
d302294723
relay/api: always return a body with field "error" in error responses
2025-01-07 07:52:09 +01:00
Sébastien Helleu
60422ca6b1
relay: remove extra space in JSON authentication error
2025-01-07 07:28:45 +01:00
Sébastien Helleu
9d3388b09e
relay/api: use cjson lib to return errors
2025-01-07 07:23:55 +01:00
Sébastien Helleu
d10af1037b
relay/api: use cjson lib to build JSON body of handshake request
2025-01-07 07:18:01 +01:00
Nils
c6c420c698
relay: add completion resource
2025-01-05 14:54:07 +01:00
Sébastien Helleu
434c1ee3c4
relay/api: send the sync request at the same time as buffer data retrieval
...
This fixes events missed by the client when synchronizing after fetching data.
2024-08-25 21:13:38 +02:00
Sébastien Helleu
6bb4d64512
relay/api: allow array with multiple requests in websocket frame received from client
2024-08-25 20:48:52 +02:00
Sébastien Helleu
a317c785fb
relay/api: add automatic reconnection to remote ( closes #2166 )
...
New options:
- remote option "autoreconnect_delay"
- relay.api.remote_autoreconnect_delay_growing
- relay.api.remote_autoreconnect_delay_max
2024-08-11 12:18:28 +02:00
Sébastien Helleu
24734c4fe0
relay/api: add field "tmie_displayed" in GET /api/buffers
2024-08-10 13:58:58 +02:00
Sébastien Helleu
41ab22554c
tests/relay/api: add missing fields in test of buffer to json function
2024-08-10 13:42:38 +02:00
Sébastien Helleu
b00f94dc70
relay/api: add field "hidden" in GET /api/buffers (issue #2159 )
2024-08-10 12:42:55 +02:00
Sébastien Helleu
07ef722c06
relay/api: disconnect cleanly when the remote is quitting ( closes #2168 )
2024-08-09 23:37:33 +02:00
Sébastien Helleu
6e775e4768
relay/api: close obsolete buffers when reconnecting to the remote
...
This closes all buffers that exist locally but not on the remote any more,
after reconnecting to the remote.
2024-08-09 18:08:31 +02:00
Sébastien Helleu
eb5399518e
relay/api: clear lines and nicklist on all remote buffers upon successful connection to the remote ( closes #2161 )
2024-08-09 18:01:59 +02:00
Sébastien Helleu
87a5620623
tests: fix typo in header
2024-08-09 07:24:11 +02:00
Sébastien Helleu
3828a9f987
tests: add field "request_id" in tests of relay api protocol
2024-06-30 00:22:46 +02:00
Sébastien Helleu
f8f6e100d0
relay/api: always set "body_type" and "body" (null if there is no body) in websocket frame
2024-06-29 23:59:59 +02:00
Sébastien Helleu
555632b615
relay/remote: update buffer line on event "buffer_line_data_changed"
2024-06-27 21:39:21 +02:00
LuK1337
14187b3834
tests: relay: fix HotlistToJson test on s390x
...
1: error: Failure in TEST(RelayApiMsg, HotlistToJson)
1: expected <2024-05-26T10:29:37.716512Z>
1: but was <2024-05-26T10:29:37.000000Z>
1: difference starts at position 20 at: <T10:29:37.000000Z >
2024-05-26 14:03:04 +02:00
LuK1337
6f774a8e8e
tests: relay: add missing <string.h> include
...
Fixes build error on Fedora 40.
2024-05-26 13:58:35 +02:00
Sébastien Helleu
484abc68fc
relay: add option "autoconnect" in remote
...
This option enables auto-connection to the remote, unless command line option
`-a` (`--no-connect`) is given.
2024-05-14 22:27:11 +02:00
Sébastien Helleu
3bfb7d7f04
relay/api: add field "modes" in GET /api/buffers
2024-05-12 12:46:32 +02:00
Sébastien Helleu
cdeac1b693
relay/api: add field "input_prompt" in GET /api/buffers
2024-05-11 14:05:52 +02:00
Sébastien Helleu
6526cc230a
relay/api: add input fields in GET /api/buffers
...
New fields returned:
- "input" (string): content of input
- "input_position" (integer): position in input (starts at 0)
- "input_multiline" (boolean): true if the buffer allows multiline input
2024-05-05 23:07:42 +02:00
Sébastien Helleu
211cd11c2a
relay/api: add parameter "lines_free" in GET /api/buffers
...
This parameter is the number of lines to return for buffers with free content.
Its default value is `0` if "lines" is set to `0`, otherwise all buffer lines
are returned.
2024-05-05 22:30:04 +02:00
Sébastien Helleu
0cf504dce7
tests: add test on relay API preflight request (OPTIONS)
2024-05-05 14:13:03 +02:00
Sébastien Helleu
6839974a07
tests: fix relay API protocol tests
2024-05-05 11:37:05 +02:00
Sébastien Helleu
586e66d6fa
tests: add placeholders for tests on relay api remote event functions
2024-05-04 11:41:23 +02:00
Sébastien Helleu
afe037c579
relay/api: add buffer keys in GET /api/buffers (issue #2066 )
2024-05-01 13:53:58 +02:00
Sébastien Helleu
b8f6468590
relay/api: add color names for groups and nicks in GET /api/buffers
2024-04-29 22:43:38 +02:00
Sébastien Helleu
de24921609
relay/api: add nicklist boolean fields in GET /api/buffers
2024-04-29 22:05:47 +02:00
Sébastien Helleu
1d9cdba58e
relay/api: rename field "nicklist" to "nicklist_root" in GET /api/buffers
2024-04-29 21:56:38 +02:00
Sébastien Helleu
984fdb2b58
relay: add TLS connection to remote, add remote option "tls_verify"
2024-04-14 19:00:05 +02:00
Sébastien Helleu
86dea12b71
tests: fix relay/api tests on group and nick colors
2024-04-07 17:22:03 +02:00