Derrick Hammer
0ec1dd1aac
feat: add getListeners method to Socket
2023-07-22 10:14:01 -04:00
Derrick Hammer
8c6b038f89
dep: update module hash
2023-07-22 10:11:15 -04:00
Derrick Hammer
8380254638
fix: missing return
2023-07-22 08:31:59 -04:00
Derrick Hammer
57efedd0af
fix: on write and end, log errors if we are trying to use a closed socket
2023-07-22 07:11:48 -04:00
Derrick Hammer
7eabf6a05d
fix: return type required
2023-07-22 06:11:18 -04:00
Derrick Hammer
0c18c92521
fix: change on to always return an instance of emittery unsubscribe function
2023-07-22 06:03:44 -04:00
Derrick Hammer
720b7a60d9
dep: update module hash
2023-07-21 21:43:19 -04:00
Derrick Hammer
cbdf0a3ffa
refactor: update socket event handling
...
* update event handling to use a Map
* enable off to remove and close just one event, vs closing out all of them (possible bug)
* have on skip adding hook if it's in the eventUpdates already
2023-07-21 20:34:32 -04:00
Derrick Hammer
11ee1d687a
refactor: mutex no longer needed
2023-07-21 20:10:14 -04:00
Derrick Hammer
bbdb6d5848
dep: update module hash
2023-07-12 06:31:53 -04:00
Derrick Hammer
296a23a3ce
dep: update module hash
2023-07-08 07:33:20 -04:00
Derrick Hammer
fa071d53a7
dep: update module hash
2023-07-08 04:07:24 -04:00
Derrick Hammer
a03e775060
dep: update module hash
2023-07-04 23:14:15 -04:00
Derrick Hammer
2a20232269
dep: update module hash
2023-07-04 21:01:52 -04:00
Derrick Hammer
e47fe353aa
dep: update module hash
2023-07-04 11:20:31 -04:00
Derrick Hammer
8141edeb79
dep: update module hash
2023-07-01 16:39:25 -04:00
Derrick Hammer
009dc4e003
refactor: switch to emittery
2023-07-01 16:06:03 -04:00
Derrick Hammer
d22b636889
refactor: use new sdks and portal system
2023-07-01 05:36:28 -04:00
Derrick Hammer
00f37b829b
*Update module hash
2023-04-16 22:44:04 -04:00
Derrick Hammer
060faf45ac
*Update module hash
2023-04-09 11:52:44 -04:00
Derrick Hammer
4829b48058
*Update module hash
2023-04-08 21:21:04 -04:00
Derrick Hammer
9740402e82
*Update module hash
2023-04-08 21:02:10 -04:00
Derrick Hammer
20e9a6e0e5
* Add EventEmitter2 library for event handling and remove EventEmitter3 library in index.ts; update package.json to include EventEmitter2 library.
2023-04-08 16:11:03 -04:00
Derrick Hammer
fdda2befa8
* Refactor swarm setup event to include the current instance in the emitted data.
2023-04-08 15:56:43 -04:00
Derrick Hammer
cf27a6518f
* Add call to emitAsync method to trigger "setup" event on swarm object.
2023-04-08 15:55:09 -04:00
Derrick Hammer
0d7090206c
*Remove use of protomux
2023-04-08 15:19:31 -04:00
Derrick Hammer
3a207c107c
*Remove syncProtomux
2023-04-08 15:18:37 -04:00
Derrick Hammer
7c8763c530
*Export MODULE
2023-04-07 13:20:31 -04:00
Derrick Hammer
1d0718af05
*Pass socket id
2023-04-06 17:34:23 -04:00
Derrick Hammer
9ae392e1ab
*Switch to simpler protomux sync approach
2023-04-06 16:36:13 -04:00
Derrick Hammer
c0acff3955
*Flag protomux as slave
2023-04-06 14:38:07 -04:00
Derrick Hammer
eec453ba91
*await on the update being sent, and the update getting received
2023-04-06 14:29:15 -04:00
Derrick Hammer
0596a132f3
*Move setup emit until after the setup promise has resolved
2023-04-06 10:48:27 -04:00
Derrick Hammer
aefd401d22
*Create a setup defer to ensure we wait until the 1st sync is done before setting up the stream on our end
2023-04-06 10:29:59 -04:00
Derrick Hammer
382ce99ada
*Add protomux userData field as null, otherwise it does not get set
2023-04-06 10:17:16 -04:00
Derrick Hammer
794ab2f792
*forgot to pass swarm to socket
2023-04-06 10:08:23 -04:00
Derrick Hammer
a9bc1e3a73
*emit setup event to allow setup of a socket before triggering the connection event
...
*add a link to the parent swarm in the socket to call emit
2023-04-06 09:57:04 -04:00
Derrick Hammer
a59de99e56
*Use pdefer to wait until the other site has responded that they synced changes and gave true
2023-04-05 18:01:59 -04:00
Derrick Hammer
7a6a740484
*update module hash
2023-04-05 04:07:46 -04:00
Derrick Hammer
55159d89ce
*implement syncing protomux channel/message state
2023-04-05 03:54:27 -04:00
Derrick Hammer
be450ecbce
*update module hash
2023-04-04 11:23:55 -04:00
Derrick Hammer
275c08efe7
*update module hash
2023-04-04 08:08:00 -04:00
Derrick Hammer
990d77d86e
*Update module hash
2023-04-04 06:28:27 -04:00
Derrick Hammer
8d74bf96af
*Update module hash
2023-03-29 17:03:26 -04:00
Derrick Hammer
c7a7fa9194
*update module hash
2023-03-24 16:14:21 -04:00
Derrick Hammer
1aa1be90d4
*update module hash
2023-03-19 15:23:32 -04:00
Derrick Hammer
1c167aad2a
*modify connect to return an existing connection if it exists, and if not, throw a not implemented error
2023-03-19 14:55:23 -04:00
Derrick Hammer
1a4f33c697
*Move _connectBackoff retry to costructor so we don't create duplicate hooks
2023-03-19 14:03:24 -04:00
Derrick Hammer
290ca18c4b
*Store the listenConnections connection so don't create duplicates incase init/ready is called multiple times
2023-03-19 14:02:50 -04:00
Derrick Hammer
ce24ca1bd9
*missing storing the socket
2023-03-19 11:14:31 -04:00