JRoberts
facb6f4561
ntf: separate notifierKey from SMPQueueNtf ( #382 )
2022-06-02 15:36:16 +04:00
JRoberts
6a27b82759
ntf: SMP subscribers logic ( #381 )
2022-06-02 14:52:14 +04:00
JRoberts
b5ccce0f6a
ntf: store get methods ( #380 )
2022-06-01 21:03:32 +04:00
JRoberts
b60408837a
notifications: SNEW draft ( #378 )
2022-06-01 18:42:35 +04:00
JRoberts
c2ec691a46
ntf subscription diagram ( #377 )
2022-05-31 15:40:43 +04:00
Evgeny Poberezkin
ef7c66762e
update script to send test notifications
2022-05-30 21:16:25 +01:00
JRoberts
9f6316fa6d
fix getDeviceNtfToken ( #376 )
2022-05-30 22:58:47 +04:00
JRoberts
95a2f7560d
add 2.1.1 to changelog
2022-05-25 10:08:55 +04:00
Evgeny Poberezkin
b67c3e5935
version 2.1.1 ( #375 )
v2.1.1
2022-05-25 09:38:17 +04:00
Evgeny Poberezkin
ce3ca08199
server: CLI warning when deleting server configuration ( #371 )
...
* server: CLI warning when deleting server configuration
* correction
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-05-24 19:45:22 +01:00
Evgeny Poberezkin
fd410280b5
gracefully close sockets on client disconnection ( #373 )
...
* gracefully close sockets on client disconnection
* remove -threaded
2022-05-24 19:38:14 +01:00
Evgeny Poberezkin
c74f4d729b
create/verify agent schema during tests ( #374 )
...
* create/verify agent schema during tests
* add --indent to .schema, enable all tests
* remove -threaded from test
2022-05-24 19:28:40 +01:00
Evgeny Poberezkin
49070fffe0
make server compatible with old ini files ( #372 )
...
* make server compatible with old ini files
* fix
* clean up
2022-05-18 18:30:06 +01:00
JRoberts
8dda99d77f
v2.1.0 ( #370 )
v2.1.0
2022-05-11 15:57:29 +04:00
Evgeny Poberezkin
4e4eea34f9
server: configuration to expire inactive clients in ini file ( #369 )
...
* server: configuration to expire inactive clients in ini file
* corrections
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-05-11 15:43:54 +04:00
Evgeny Poberezkin
964daf5442
v2.0.0 ( #360 )
...
* v2.0.0: notification server release
* update changelog
* update changelog
* update changelog
v2.0.0
2022-05-03 14:32:37 +01:00
Evgeny Poberezkin
6a1cea93b5
fix: disconnect socket
2022-04-30 14:09:42 +01:00
Evgeny Poberezkin
ace94d7c69
log server stats ( #367 )
...
* log server stats
* separate stats updates from the existing transactions
2022-04-30 13:47:21 +01:00
Evgeny Poberezkin
1064e9c315
disconnect inactive clients ( #366 )
...
* disconnect inactive clients
* update test description
* use one thread per client to disconnect inactive clients
* remove comments
* more comments
2022-04-30 10:56:01 +01:00
Evgeny Poberezkin
2733a09a40
limit concurrency when resubscribing, method to resubscribe if not subscribed ( #368 )
2022-04-30 09:36:52 +01:00
Evgeny Poberezkin
7249cb0f0e
close socket on connection exception ( #365 )
2022-04-29 13:12:30 +01:00
Evgeny Poberezkin
f8ec838912
prevent servers from reconnecting when the agent is closed ( #364 )
...
* prevent servers reconnecting when the agent is closed
* fail creating NTF server connection when the agent is closed
2022-04-25 16:04:06 +01:00
Evgeny Poberezkin
c6dde772b4
batch all connections in DOWN/UP agent messages ( #363 )
2022-04-25 08:26:52 +01:00
Evgeny Poberezkin
633cd675b5
ToJSON instance for NtfTknStatus ( #362 )
2022-04-22 20:02:02 +01:00
Evgeny Poberezkin
83c18272cf
Merge pull request #361 from simplex-chat/ep/ntf-token-status-2
...
registerNtfToken returns token status
2022-04-22 18:18:45 +01:00
Evgeny Poberezkin
7652ece045
registerNtfToken returns token status
2022-04-22 17:50:30 +01:00
Evgeny Poberezkin
7774fc3271
update swift flag
2022-04-21 18:14:41 +01:00
Evgeny Poberezkin
43d24d07dd
Merge pull request #334 from simplex-chat/notifications-server
...
push notifications server
2022-04-21 17:21:09 +01:00
Evgeny Poberezkin
a2204c9b84
remove comments, add EOL
2022-04-21 17:15:41 +01:00
Evgeny Poberezkin
f718a84335
change log level to error
2022-04-21 17:07:39 +01:00
Evgeny Poberezkin
e6fbaf5e50
primary tokens ( #356 )
...
* primary tokens
* support repeat token registration (TODO fix tests)
* fix notifications tests
* fix/test repeat/new registrations of the same token
* re-register token when subsequent ntf command fails with AUTH error (e.g. when server is re-started)
* cancel periodic notifications when token is deleted on the server
* debug failing test on CI
* fix notification test in CI
* debug CI test
* add delay in notificaitons test after server restart
2022-04-21 17:04:26 +01:00
Evgeny Poberezkin
5eb2822d25
use cpp-options
2022-04-21 15:16:18 +01:00
Evgeny Poberezkin
0a2cad2745
version 1.1.0 ( #358 )
...
* version 1.1.0
* increase test delays to stabilize
v1.1.0
2022-04-21 15:00:30 +01:00
Evgeny Poberezkin
4dc7d9bc77
Merge branch 'master' into notifications-server
2022-04-21 14:35:23 +01:00
JRoberts
12caa328a8
SMP confirmation timeout recovery rfc ( #357 )
2022-04-20 22:17:51 +01:00
Evgeny Poberezkin
b5c5a8ad2a
rename Subscriptions.hs/Store.hs
2022-04-20 11:54:37 +01:00
Evgeny Poberezkin
60d0f19121
Merge branch 'master' into notifications-server
2022-04-20 08:23:26 +01:00
Evgeny Poberezkin
68f52c47dd
message TTL and periodic expiration; setting to prevent creation of the new queues ( #355 )
...
* message TTL and periodic expiration; setting to prevent creation of the new queues
* fix expiration interval
2022-04-20 08:14:26 +01:00
Evgeny Poberezkin
6f3e9dc603
Merge branch 'master' into notifications-server
2022-04-18 09:08:53 +01:00
Evgeny Poberezkin
17888f89a9
test notification token with agent and notifications server ( #353 )
...
* test notification token with agent and notifications server
* notification server test with APNS mock
* set environment variables in the test
* use base64url encoding in encrypted notification data
2022-04-18 08:57:55 +01:00
Evgeny Poberezkin
f84439f79d
function to run TCP server without TLS ( #354 )
2022-04-18 08:56:08 +01:00
Evgeny Poberezkin
9d8a9c4fe4
interval notifications (TCRN command) ( #352 )
...
* notifications: periodic notifications
* agent: allow repeat token registrations, delete old tokens from notification server (e.g., when database is moved to another device)
* decrypt token verification code in the agent
* check token status, send TCRN on registration if it was enabled
* fix http2/apns response handling for error responses (also, APNS seems not to send content-length header?)
2022-04-17 10:34:51 +01:00
Evgeny Poberezkin
45ddecc4b8
APNS/HTTP2 push client for notifications server ( #350 )
...
* APN push client (WIP)
* APNS push client works
* TODO comments
* comment
* send notification and process the response
* config
* e2e encryption for notification parameter
* read apns key filename and ID from env
* connect APNS client to server, fix notification JSON encoding to use dash case
* do not connect to APNS on start to pass CI tests
* fix CI test
* remove redundant import
2022-04-14 11:33:17 +01:00
Evgeny Poberezkin
327f7112d0
Merge branch 'master' into notifications-server
2022-04-13 08:52:45 +01:00
Evgeny Poberezkin
d38303d5f1
fix END from disconnected clients incorrectly removing the subscriptions, remove previous PING changes that attempted to solve the problem of lost subscriptions ( #351 )
...
* Revert "increase PING timeout, add PING failure count"
This reverts commit a89e019bb0 .
* Revert "PING error now throws error to restart SMPClient for more reliable re-connection (#342 )"
This reverts commit 62acbc4ad4 .
* only process END from the currently active client
* log ignored END
* make PING sent every 15 sec and destroying connection on failure (for testing - to be reverted)
* make removing subscription atomic too
* Revert "make PING sent every 15 sec and destroying connection on failure (for testing - to be reverted)"
This reverts commit 5520b318a2 .
* refactor, aggressive PING settings for testing
* revert PING breaking connection
2022-04-12 11:35:28 +01:00
Evgeny Poberezkin
65c77c78f3
Merge branch 'master' into notifications-server
2022-04-11 10:39:41 +01:00
Evgeny Poberezkin
6382367ec0
typo
2022-04-11 10:30:34 +01:00
Evgeny Poberezkin
a89e019bb0
increase PING timeout, add PING failure count
2022-04-11 10:24:02 +01:00
Evgeny Poberezkin
a638486bb3
add swift flag to package.yaml
2022-04-08 15:42:22 +01:00
Evgeny Poberezkin
a211e67829
Merge branch 'master' into notifications-server
2022-04-08 08:51:36 +01:00