-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental support for new tdjson interface
- Added `useNewTdjsonInterface` experimental option to `tdl.configure`. - The Client is changed to allow managing through another entity that can pass receive() results to the client and gets notified when the client is closed. - Added `receiveTimeout` option to `tdl.configure`. - `receiveTimeout` in the `createClient` options is deprecated (works with the old interface only). The option is very rarely used. - The deprecated pause/resume do not work with the new interface. The old interface still seems to work fine (modulo the fact that tdl reuses the main libuv threadpool for clients) and the implementation is somewhat simpler since the clients are independent.
- Loading branch information
Showing
11 changed files
with
498 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,20 @@ | |
|
||
<!-- Hi! --> | ||
|
||
## tdl (unreleased) | ||
## tdl@7.4.0 (unreleased) | ||
|
||
- Added `tdl.setLogMessageCallback` that allows to pass a callback to the | ||
`td_set_log_message_callback` TDLib function using Node-API's thread-safe | ||
functions. (TDLib v1.8.0+ only) | ||
- `tdl.configure`: Added an experimental option `useNewTdjsonInterface` that | ||
enables the use of `td_create_client_id`/`td_send`/`td_receive`/`td_execute` | ||
interface with a client manager and global receive loop, though the old | ||
interface still works well. | ||
This does not use the libuv threadpool and does not have a limitation of max | ||
`UV_THREADPOOL_SIZE` clients. | ||
(TDLib v1.7.0+ only) | ||
- `tdl.configure`: Added a `receiveTimeout` advanced option. | ||
- `receiveTimeout` in the client options is deprecated. | ||
- Deprecated the `useMutableRename` advanced option. | ||
|
||
## [email protected] (2023-09-26) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.