31 Commits

Author SHA1 Message Date
Alexander Zinchuk
358d59ff53 Use multiple connections and fix parallel workers for faster download (#1955) 2022-08-31 15:00:33 +02:00
Alexander Zinchuk
391c667f09 [Dev] Fix linting for JS files (#1864) 2022-05-06 17:56:12 +01:00
Alexander Zinchuk
3a3505b58e [Dev] GramJs: Bring back eslint, fix some errors 2022-05-03 14:17:18 +01:00
Alexander Zinchuk
1da41443ca Calls: Introduce peer-to-peer calls (#1791) 2022-04-09 01:18:22 +02:00
Alexander Zinchuk
1c0388f6d1 GramJs: Wake-up pings for faster reconnect after idle mode 2022-01-27 04:09:28 +01:00
Alexander Zinchuk
342ca92553 GramJs: Avoid duplicated reconnects 2022-01-24 04:41:37 +01:00
Alexander Zinchuk
5cf5c140f8 GramJs: Properly handle AUTH_KEY_UNREGISTERED (again) 2021-12-24 01:25:51 +01:00
Alexander Zinchuk
21678f6e83 Revert "GramJs: Properly handle AUTH_KEY_UNREGISTERED (#1600)"
This reverts commit 166e9e7aabe06678dbd072395577d48e09451454.
2021-12-21 20:05:16 +01:00
Alexander Zinchuk
166e9e7aab GramJs: Properly handle AUTH_KEY_UNREGISTERED (#1600) 2021-12-21 12:17:16 +03:00
Alexander Zinchuk
124d23aca8 GramJs: Prevent duplicate message ID attack (#1563) 2021-12-10 18:32:20 +01:00
Alexander Zinchuk
a31aa31b6b [Perf] GramJs: Fix memory leaks (#1546) 2021-11-17 17:49:41 +03:00
Alexander Zinchuk
cf2db92c61 GramJs: Properly reject promise if result is unparsable 2021-11-05 22:03:08 +03:00
Alexander Zinchuk
7e8bf8addf [Debug] Add test servers (#1513) 2021-10-28 15:50:48 +03:00
Alexander Zinchuk
6bcbb78258 GramJs: Add reconnect interval, don't sign out on internal server issues (#1341) 2021-08-03 01:31:20 +03:00
Alexander Zinchuk
73910b1b4b GramJs: Fix reconnecting after sudden WS connection close (#1320) 2021-07-27 20:14:08 +03:00
Alexander Zinchuk
0e59ff9bd7 GramJs: Support reconnects when transferring files, avoid main loop race condition (#1319) 2021-07-24 02:17:36 +03:00
Alexander Zinchuk
7ceff64489 GramJs: Add more connection logging 2021-07-21 17:44:57 +03:00
Alexander Zinchuk
4e4299bf39 GramJs: Log socket connection failure cause (#1299) 2021-07-20 15:47:55 +03:00
Alexander Zinchuk
426e117a92 Follow-up 2021-07-15 23:52:07 +03:00
Alexander Zinchuk
388143a057 GramJs: New authorization algorithm, new RSA keys, message queues with invokeAfter (#1258) 2021-07-15 22:51:40 +03:00
Alexander Zinchuk
0d0b6e7df6 GramJs: Do not reconnect after manual disconnect (#1217) 2021-06-29 03:30:23 +03:00
Alexander Zinchuk
7e453c788c GramJs: Fix exception "to is not defined" 2021-06-27 19:09:22 +03:00
Alexander Zinchuk
49d0e7987d GramJs: Another possible fix for reconnects (#1201) 2021-06-22 18:03:45 +03:00
Alexander Zinchuk
c6550ca3e4 Fix syncing while in comments thread; Possible fix for reconnects (#1200) 2021-06-22 13:54:20 +03:00
Alexander Zinchuk
731c0330ad GramJs: Update server time offset on pongs (#1198) 2021-06-21 16:39:58 +03:00
Alexander Zinchuk
dcd3803263 Support server time offset (#1186) 2021-06-19 11:20:55 +03:00
Alexander Zinchuk
b36ec8cf44 GramJs: Fix ESLint errors (#1070) 2021-05-21 14:50:12 +03:00
Alexander Zinchuk
97c2074236 GramJs: Add missing security checks (#1065) 2021-05-08 22:41:34 +03:00
Alexander Zinchuk
146a0db3c2 GramJs: Auto-fixes by ESLint 2021-05-08 22:41:28 +03:00
Alexander Zinchuk
559ef6a53b GramJs: Code style fixes by WebStorm 2021-05-08 22:41:22 +03:00
Alexander Zinchuk
3afcde3217 Initial commit 2021-04-09 14:11:51 +03:00