Adhiraj Singh
b2c1cfbf9c
fix: timeout send call
2023-02-01 14:33:14 +05:30
Adhiraj Singh
c24ffc1bed
feat: better mapping for WS errors
2023-01-17 22:01:51 +05:30
Adhiraj Singh
30e2cb5c4c
refactor: impl counter based event buffer
...
1. counter based event buffer keeps track of the number of blocks that request event processing in buffer
2. event buffer only releases events when the last block completes (i.e. counter = 0)
this approach is far simpler than the promised based garbled crap I wrote, should also prevent the deadlock issues it introduced 🙏
2022-12-02 11:31:42 +05:30
Adhiraj Singh
b141ac2c00
chore: only buffer if logged in
2022-11-25 10:17:47 +05:30
Adhiraj Singh
10d61d02cf
chore: expose uploadPreKeysToServerIfRequired
2022-11-11 00:42:57 +05:30
Adhiraj Singh
3977444bc5
fix: handle errors in validateconnection
2022-10-16 15:25:10 +05:30
Adhiraj Singh
d0330d1863
refactor!: cleaner message history sync
...
This is a breaking change,
1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event
2. no need to debounce for app state sync
3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
2022-09-29 16:32:57 +05:30
Adhiraj Singh
f8fd5ec008
feat: copy in axios options headers to WebSocket
2022-09-20 11:09:34 +05:30
Adhiraj Singh
1b710729e5
feat: logout if myAppStateKeyId not present
2022-09-14 15:57:17 +05:30
fadiinho
f2917f0a6d
feat: add option to set timeout between each qr generation
2022-07-30 14:12:50 +05:30
Adhiraj Singh
d04718e27a
feat: add desktop + full history sync opts
2022-07-26 13:30:01 +05:30
Adhiraj Singh
1c36d57dd1
chore: do not log reg ID
2022-07-14 22:46:59 +05:30
Adhiraj Singh
c982d8c3a0
fix: dup close events
2022-07-14 11:22:17 +05:30
Adhiraj Singh
40a1e268aa
feat: add "strictNullChecks"
2022-07-09 10:20:07 +05:30
Adhiraj Singh
5cc58d4aed
feat: add bulk "process" capability to BaileysBufferableEventEmitter
2022-07-04 11:34:41 +05:30
Adhiraj Singh
d00aed7ff5
chore: timeout awaitNextMessage
2022-06-27 18:53:41 +05:30
Adhiraj Singh
eaf0f37d24
refactor: use event-buffer for state sync resyncs
2022-06-27 14:51:26 +05:30
Adhiraj Singh
7421f55daa
feat: implement event buffer for offline msgs
...
!BREAKING_CHANGE
1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30
Adhiraj Singh
23acc1fb39
feat: extract code from WS error
2022-06-16 20:43:51 +05:30
Adhiraj Singh
26b286c98c
chore: use Boom for WS errors
2022-05-31 21:36:11 +05:30
Adhiraj Singh
07f1f8c043
chore: use query to prevent redundant logs
2022-05-28 00:22:25 +05:30
Adhiraj Singh
ed557967d1
chore: make "auth" mandatory in SocketConfig
2022-05-25 12:13:17 +05:30
Adhiraj Singh
a8e209705a
feat: add retry capability to SignalKeyStore
2022-05-22 20:52:21 +05:30
Adhiraj Singh
64a6070845
fix: use handshake timeout
2022-05-09 15:42:42 +05:30
Adhiraj Singh
3ac5eafc63
chore: more descriptive logging of connection close
2022-05-02 13:24:59 +05:30
Adhiraj Singh
fd9daf8ad3
refactor: remove redundant stream:error handling
2022-04-25 13:27:25 +05:30
Adhiraj Singh
9424d04f5d
fix: catch promise rejection on presence update
2022-04-25 12:57:47 +05:30
Adhiraj Singh
211a899ed4
feat: handle stream:errors more gracefully
2022-04-25 09:11:03 +05:30
Adhiraj Singh
21f163d6cf
fix: prevent duplicate frame emit
2022-04-23 12:20:18 +05:30
Adhiraj Singh
b3937b8852
chore: add logging to NS
2022-04-23 11:55:31 +05:30
Adhiraj Singh
c4ffb2bfaf
Revert "chore: add WS ping"
...
This reverts commit f2bec6a1d1 .
2022-04-22 19:17:53 +05:30
Adhiraj Singh
f2bec6a1d1
chore: add WS ping
2022-04-18 13:17:29 +05:30
Adhiraj Singh
fe9a6d07ae
fix: browser version
2022-04-14 21:29:07 +05:30
Adhiraj Singh
e3cb822c08
chore: remove redundant log
2022-04-13 23:41:20 +05:30
Adhiraj Singh
b4fd010b36
refactor: use modified legacy bin XML parser instead of "WABinary"
2022-04-13 16:23:28 +05:30
Adhiraj Singh
7db8796fed
feat: include platform in creds
2022-04-13 12:49:46 +05:30
Adhiraj Singh
564c9f2e86
chore: remove redundant headers
2022-04-13 00:10:24 +05:30
Adhiraj Singh
02265fd7f9
refactor: upload more pre-keys + use pure function
2022-04-13 00:02:10 +05:30
Adhiraj Singh
2c87bfae2c
chore: remove useless log
2022-04-12 19:21:56 +05:30
Adhiraj Singh
37178547ba
fix: better registration ID
2022-04-12 19:02:30 +05:30
Adhiraj Singh
75c637cf6c
feat: remove need for "serverHasPreKeys"
2022-04-12 18:47:18 +05:30
Adhiraj Singh
5655ccaca7
fix: wait for pre-key upload
2022-04-12 17:07:04 +05:30
Adhiraj Singh
f4da9af5d3
chore: use only numbers in message tag
2022-04-12 17:04:24 +05:30
Adhiraj Singh
98c9af4acf
feat: log fromMe messages in trace mode
2022-04-12 16:51:15 +05:30
Adhiraj Singh
8663598292
chore: log proto objects to prevent buffer arrays being printed
2022-04-02 15:44:51 +05:30
Adhiraj Singh
355b0664df
feat: handle encrypt notification
2022-04-02 13:37:10 +05:30
Adhiraj Singh
ec6e904db4
refactor: process sync actions out of socket
2022-03-29 14:16:51 +05:30
Adhiraj Singh
89e35ec18a
feat: use transaction when uploading prekeys
2022-03-29 13:41:41 +05:30
Adhiraj Singh
1635b1e756
refactor: cleanup MD socket initial connect code + log more
2022-03-24 20:33:55 +05:30
Adhiraj Singh
f82f5470cd
feat: reset ping timeout on any frame recv
...
Credit to @HUGEIT for suggesting this
2022-03-24 13:25:23 +05:30