-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web browser in the browser and TDLib #508
Comments
You can see one such implementation in https://evgeny-nadymov.github.io/telegram-react/. We will make corresponding npm package public after it is fully-documented and we implement other pending TDLib tasks. |
Great example of use, but there are moments. For example, the CPU load is 100% after reloading the page. |
@isopen hey, I got a new problem, I just like https://evgeny-nadymov.github.io/telegram-react/ to use tdweb, but when I run my project, I just got a error in my console: |
Mode wasm or js? Possible case of invalid json in Manifest. |
|
js slows down more than wasm. I use wasm in my project |
Wait, I use the npm tdweb, and the tdweb.js import the wasm. |
This issue is because you are trying to load your service worker file from a different root directory. Since you are using create-react-app, you need to make sure your service worker is being placed in your 'public' folder and can be accessed by pasting its full url in the browser. If you can't access it, then you'll see the error you are seeing because create-react-app tries to load index.html first. Nothing to do with manifest issue. |
Guys. Does anyone have a implementation in web worker?
#18
The text was updated successfully, but these errors were encountered: