Commit Graph

149 Commits

Author SHA1 Message Date
Jon Staab 2e925b9821 Fix dropped tags 2023-11-30 10:58:14 -08:00
Jon Staab fddd09af09 Replace Tags.getCommunity with Tags.communities 2023-11-22 11:20:58 -08:00
Jon Staab cf5bd3312c Fix tags dropping non-reply/root 2023-11-22 08:02:50 -08:00
Jon Staab c9d3cd910b Fix Tags.normalize 2023-11-16 04:55:30 -08:00
Jon Staab de186dfd7b Fix mis-identification of legacy tags for mentions 2023-11-13 13:30:43 -08:00
Jon Staab e38ee0a4e0 Replace valueEquals with nthEq 2023-11-13 11:58:29 -08:00
Jon Staab b23d69ff16 Add stricter check for legacy tags 2023-11-10 22:58:03 -08:00
Jon Staab 63e14542ff Fix tag normalization 2023-11-10 22:46:20 -08:00
Jon Staab d2ae601ac0 Fix premature closure of connections, add Tags util 2023-11-09 15:28:10 -08:00
Jon Staab 05307a7780 Remove executor load/count, add closeOnEose to subscription 2023-10-26 11:55:04 -07:00
Jon Staab 495f19b56d Add now for real 2023-10-26 10:53:58 -07:00
Jon Staab 6cf0ff3c3c Add createEvent and now 2023-10-26 10:50:15 -07:00
Jonathan Staab 7f1ac721dc Warn on non-array messages from sockets 2023-10-02 13:22:35 -07:00
Jonathan Staab 11499ec04f Return unsubscribe from load 2023-09-20 17:49:23 -07:00
Jonathan Staab 7ee07e6f5e Use files instead of npmignore 2023-09-20 14:01:41 -07:00
Jonathan Staab f89c63d67c Switch to gts/tsc-multi 2023-09-20 13:52:45 -07:00
Jonathan Staab c8c53559db Fix some memory leaks, add executor.load and some utils 2023-09-20 12:13:08 -07:00
Jonathan Staab 25adcc71ef Tweak some typescript things 2023-09-20 10:28:15 -07:00
Jonathan Staab 7c9039704c Add types file 2023-09-20 09:38:00 -07:00
Jonathan Staab 47ddbf6498 Add custom emitter and wrapper target 2023-09-14 13:07:10 -07:00
Jonathan Staab 3b9b6f9dc0 Shorten reconnect timeout 2023-08-16 13:51:08 -07:00
Jonathan Staab a909ab6d28 Handle notices, don't send reqs that have already been closed 2023-08-15 14:21:25 -07:00
Jonathan Staab ee1ac84ab7 Re-organize connection management 2023-08-14 16:31:17 -07:00
Jonathan Staab 3caa4c31d1 Allow reusing sockets by moving some logic to onClose 2023-08-07 15:54:20 -07:00
Jonathan Staab 5d86ec639e Handle AUTH at the socket level 2023-08-04 14:26:14 -07:00
Jonathan Staab 9dad35ce20 Remove listeners from sockets on disconnect 2023-08-02 11:45:15 -07:00
Jonathan Staab ef18009d33 Send sockets to listeners rather than urls 2023-07-27 08:40:39 -07:00
Jonathan Staab e9d7ad166e Tweak socket work cadence 2023-07-20 10:18:23 -07:00
Jonathan Staab 5cbb229708 Fix const bug 2023-07-20 10:05:09 -07:00
Jonathan Staab d6defe2844 Send close only if not already closed 2023-07-20 10:03:43 -07:00
Jonathan Staab 0b8eef041d Bump version 2023-07-12 17:10:40 -07:00
Jonathan Staab 4d6ea603ff Refactor everything to use EventEmitter 2023-07-12 17:06:16 -07:00
Jonathan Staab 46470aabe4 Switch to yarn 2023-07-07 16:34:51 -07:00
Jonathan Staab b74f2e8e3d Add sockets property to all targets 2023-04-25 15:08:48 -05:00
Jonathan Staab 7cfd022f16 Remove event id check in handleAuth since request/response might span multiple executors 2023-04-20 11:52:37 -05:00
Jonathan Staab fe23f28606 Remove nostr-tools dependency 2023-04-04 09:35:31 -05:00
Jonathan Staab 30b6dcd687 Fix subscription id length, allow custom verb in publish in order to support AUTH 2023-04-03 10:08:15 -05:00
Jonathan Staab 11986c79c7 Fix event callback 2023-03-29 14:01:10 -05:00
Jonathan Staab 6c4c08c1eb Add error property to socket 2023-03-29 11:08:22 -05:00
Jonathan Staab ddcc926fa6 Catch rejections in socket 2023-03-29 10:37:39 -05:00
Jonathan Staab dc6defdf61 Update repo url 2023-03-29 10:22:09 -05:00
Jonathan Staab da3b176b49 Fix Plex data transformation, handle socket errors 2023-03-29 10:06:12 -05:00
Jonathan Staab 557ab542b7 Add event bus to pool for socket open/close 2023-03-28 15:07:24 -05:00
Jonathan Staab 5131a89c29 Add npmignore 2023-03-28 14:29:18 -05:00
Jonathan Staab 5a1a72491e Fix some bugs with message delivery 2023-03-28 14:23:31 -05:00
Jonathan Staab 853b42c1c9 Add Executor and RelaySet 2023-03-27 13:39:48 -05:00
Jonathan Staab a6d6c0432d Get ts/es etc figured out 2023-03-25 11:57:46 -05:00
Jonathan Staab daca5adf11 Add Relay, Pool 2023-03-25 11:15:03 -05:00
Jonathan Staab 39d001280c First commit 2023-03-25 10:08:17 -05:00