Yonle
ad08c005ae
The unwelcoming way to respond unauthorized users.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-17 14:40:11 +07:00
Yonle
e08d64782e
b2: only start connect to relays once authenticated
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 22:16:31 +07:00
Yonle
dd1da10b8a
introduce nip42 and public/personal usage
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 21:53:58 +07:00
Yonle
5f13300734
b2: don't chill down.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-15 21:40:04 +07:00
Yonle
e651221256
replace some code & pause client socket before bouncer connect to relays
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-15 13:18:43 +07:00
Yonle
6b6547deab
add small comment
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 21:56:23 +07:00
Yonle
5595507696
Internal NIP-50 support, and fix memory leak in mode 2
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 20:07:45 +07:00
Yonle
8ad8e07536
re-transmit client's EVENT data once (re)connected to relays
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 17:52:02 +07:00
Yonle
b305881fb7
send EOSE to client once limit was under than 1
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 14:25:43 +07:00
Yonle
b7a513be56
connect to relays with user-agent
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-07 23:18:16 +07:00
Yonle
db94aa162a
Fix EOSE handling
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-07 20:48:56 +07:00
Yonle
94676ad472
b2: Do the classic sess check.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:46:38 +07:00
Yonle
d9b4b3265f
handle remainingEvents correctly
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:23:35 +07:00
Yonle
ceed45ce1c
Handle REQ limit on client filter
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:10:48 +07:00
Yonle
5df8ddda91
b2: fix crash when client disconnected
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 13:03:46 +07:00
Yonle
0bb168e777
oops
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 17:22:43 +07:00
Yonle
4cdeec40b6
fix the improvement for pendingEOSE in mode 2
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 17:19:37 +07:00
Yonle
9a4ea6ab20
improve pendingEOSE (commitdesc. avail.)
...
Normally, If it receives the first EOSE from one of existing relays, It
will forward the EOSE to client and "that's it", it ignores the further
EOSE messages. However, as the result, This confuses some nostr client
as it expects EOSE as "oh, that's the only events that i got", and there
we go something broke apart.
This commit, should fix at some cases, Especially for the one with NIP-50 supported relays (searching, etc)
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 16:59:23 +07:00
Yonle
4699ba1b48
fix major bug
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-02 22:06:25 +07:00
Yonle
bd19d934a5
Implement pendingEOSE and dich the instant EOSE
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 22:20:21 +07:00
Yonle
ea06487f94
add log_about_relays into config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 19:54:03 +07:00
Yonle
292354813c
bouncer2: no need to send CLOSE to relays after client disconnected.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 15:17:39 +07:00
Yonle
181840d045
redone log for websocket users
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:53:09 +07:00
Yonle
1021040fc1
make le log cleaner
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:50:19 +07:00
Yonle
4d728ba8f9
Just a small log fix
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:49:15 +07:00
Yonle
973dbf4cf4
add tmp_store option in config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 17:28:44 +07:00
Yonle
b06f29da5b
fix bug for mode 2 and remove unused code
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:52:07 +07:00
Yonle
2611654775
bouncer1: fixbug
2023-10-31 15:36:01 +07:00
Yonle
4fa2811eff
bouncer1: fixbug
2023-10-31 15:35:26 +07:00
Yonle
1cfe76269c
Fix bug for resub function
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:22:39 +07:00
Yonle
8370bf2cd7
fix [relays: Re-sub after reconnect]
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:15:00 +07:00
Yonle
1776c4c888
relays: Re-sub after reconnect
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:14:02 +07:00
Yonle
1db4951395
allow for setting number of clusters via config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:16:43 +07:00
Yonle
94af76f8dc
Introduce bouncing mode 2.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:00:16 +07:00