Commit Graph

736 Commits

Author SHA1 Message Date
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 1d39da19f1 Only reset auth status on successful auth 2023-09-18 11:40:45 -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 8811753ed7 Add event for socket creation 2023-03-29 10:59:38 -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 9b6a779397 Improve consistency of interface 2023-03-27 15:05:34 -05:00
Jonathan Staab 853b42c1c9 Add Executor and RelaySet 2023-03-27 13:39:48 -05:00
Jonathan Staab 4b362e3061 Add license 2023-03-25 11:58:52 -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