You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
Describe the bug
When using api.call() for example:
async function main() { const res = await TelegramAPI.call('help.getNearestDc', {}); console.log(res); } main();
The function does not close e.g. return to prompt. It seems like the socket is still open so that app does not finish:
node .\dc.js { _: 'nearestDc', country: 'AU', this_dc: 5, nearest_dc: 5 } // Hangs here and does not go to prompt. Expected behavior
I would expect for the function to finish and the app close. Reason for the question is that I will be calling this from an API, so would want it to close.
Screenshots
Context:
"@mtproto/core": "6.3.0"
Node version: Node.js v18.16.0
Any help on this would be appreciated.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using api.call() for example:
async function main() { const res = await TelegramAPI.call('help.getNearestDc', {}); console.log(res); } main();
The function does not close e.g. return to prompt. It seems like the socket is still open so that app does not finish:
node .\dc.js { _: 'nearestDc', country: 'AU', this_dc: 5, nearest_dc: 5 } // Hangs here and does not go to prompt.
Expected behavior
I would expect for the function to finish and the app close. Reason for the question is that I will be calling this from an API, so would want it to close.
Screenshots
Context:
Any help on this would be appreciated.
The text was updated successfully, but these errors were encountered: