Derrick Hammer
54904ab1ad
*Bug fix pushRemote
2023-04-06 17:24:06 -04:00
Derrick Hammer
ab4632b644
*_mux doesnt exist in Protomux
2023-04-06 17:22:18 -04:00
Derrick Hammer
2b645af1e9
*Bug fix slave
2023-04-06 17:10:08 -04:00
Derrick Hammer
eb4a8f1c9e
Revert "*Change pullRemote to throw if the item is not empty"
...
This reverts commit 74b0f1d596
.
2023-04-06 16:21:30 -04:00
Derrick Hammer
74b0f1d596
*Change pullRemote to throw if the item is not empty
2023-04-06 16:20:20 -04:00
Derrick Hammer
bef4631c30
*Switch sync approach. sync state properties ondemand before and after accessing them
2023-04-06 15:58:39 -04:00
Derrick Hammer
f457294772
*Add concept of being a slave
...
*on _onopensession, if we are a slave, sync before checking _remote
2023-04-06 14:21:01 -04:00
Derrick Hammer
81eac54453
Revert "Revert "*make syncing async""
...
This reverts commit d37d37048c
.
2023-04-06 14:15:39 -04:00
Derrick Hammer
d37d37048c
Revert "*make syncing async"
...
This reverts commit 5907966d
2023-04-06 13:26:20 -04:00
Derrick Hammer
d7dede7894
*need to use _mux on Channel calls to syncState
2023-04-05 20:03:12 -04:00
Derrick Hammer
5907966d77
*make syncing async
2023-04-05 17:46:07 -04:00
Derrick Hammer
6cb9fd8283
*add calls to this.syncState?.() which may be dynamically set higher in the stack to sync the state of the channels and messages
2023-04-05 03:45:10 -04:00
Derrick Hammer
bbe30a3de5
*prettier
2023-04-05 03:36:37 -04:00
Derrick Hammer
ce12140ac0
*add prettier
2023-04-05 03:35:15 -04:00
Nina Breznik
6dfa4f32ca
update readme with mux.pair and mux.opened ( #9 )
...
* update readme with mux.pair and mux.opened
* add opts to .pair, .unpair and .opened
2023-02-06 18:43:05 +01:00
Mathias Buus
131fce63d7
3.4.1
2023-01-13 14:08:42 +01:00
Mathias Buus
78e83bbfa9
failing test
2023-01-13 14:08:34 +01:00
Lucas
b9ff6b50b7
Add test: open + send + close on same tick ( #8 )
2022-11-08 22:13:32 +01:00
Lucas
69ae35ca8b
Update README.md ( #6 )
2022-11-03 10:39:15 +01:00
Mathias Buus
d47fd52836
3.4.0
2022-08-31 12:49:40 +02:00
Ar Nazeh
43d5192f31
Deduplicate muxer for a given same stream. ( #5 )
...
* docs: add documentation for iterating over channels
* fix: deduplicate protomux instances for the same stream
creating multiple channels on multiple muxers for the same stream closes
channels accidently see
[here](https://gist.github.com/Nazeh/a3f1d24b597913303afcb6c568f4b042 )
* fix: deduplicate muxers on the same stream
opening multiple channels on multiple muxers causes channels to either
close or reset, see
[here](https://gist.github.com/Nazeh/a3f1d24b597913303afcb6c568f4b042 )
* use userData
2022-08-31 12:49:19 +02:00
Mathias Buus
fcdc0db1e1
move to brittle 3
2022-08-15 23:51:56 +02:00
Mathias Buus
e00098b294
3.3.0
2022-08-13 00:54:18 +02:00
Kasper Isager Dalsgarð
88df528516
Add `aliases` option ( #4 )
...
* Add `aliases` option
* Clear aliases on GC
2022-08-13 00:52:34 +02:00
Mathias Buus
699dbed87d
3.2.2
2022-07-06 14:39:16 +02:00
Mathias Buus
5606c5ef85
auto split corks if they get too big
2022-07-06 14:39:04 +02:00
Ar Nazeh
3a2c88c5cb
docs: add documentation for iterating over channels ( #3 )
2022-04-06 11:48:35 +02:00
Mathias Buus
734be1f070
3.2.1
2022-03-24 15:19:57 +01:00
Mathias Buus
c98b9489fa
end on end
2022-03-24 15:19:55 +01:00
Mathias Buus
70cd098a83
3.2.0
2022-03-11 19:46:11 +01:00
Mathias Buus
0e5095aa35
re-add destroy
2022-03-11 19:46:06 +01:00
Mathias Buus
ab9d484ada
3.1.1
2022-03-11 13:58:06 +01:00
Mathias Buus
21415211e7
session -> channel and make open explicit for easier control
2022-03-11 13:55:39 +01:00
Mathias Buus
90e8bc3288
3.1.0
2022-03-11 02:18:33 +01:00
Mathias Buus
8aff462da3
add isProtomux helper
2022-03-11 02:18:31 +01:00
Mathias Buus
79ce9e21f8
3.0.2
2022-03-11 02:11:51 +01:00
Mathias Buus
22acc08aa1
set backlog to infinity for now
2022-03-11 02:11:45 +01:00
Mathias Buus
1a3d98457c
3.0.1
2022-03-11 02:11:04 +01:00
Mathias Buus
017315cec2
missing queue-tick
2022-03-11 02:11:02 +01:00
Mathias Buus
a4485f7f55
3.0.0
2022-03-11 02:10:21 +01:00
Mathias Buus
862d90d5ab
docs for v3
2022-03-11 02:10:04 +01:00
Mathias Buus
b3b9565081
context should be the first arg
2022-03-11 02:09:55 +01:00
Mathias Buus
b266f01bf2
pass session to onopen/onclose and ondestroy for consistency
2022-03-10 23:38:18 +01:00
Mathias Buus
576e08180f
move to sessions
2022-03-10 23:08:37 +01:00
Mathias Buus
717dbd0e50
2.0.0
2022-02-01 19:10:15 +01:00
Mathias Buus
e2d05941d6
use message object api ( #1 )
2022-02-01 19:09:56 +01:00
Mathias Buus
08f976b283
1.1.0
2022-01-28 16:00:12 +01:00
Mathias Buus
534c417ed0
Protomux.from
2022-01-28 16:00:09 +01:00
Mathias Buus
1c3c559d99
1.0.1
2021-12-30 21:15:07 +01:00
Mathias Buus
7ba56242e7
missing deps
2021-12-30 21:15:04 +01:00