morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.86k stars 596 forks source link

About the implementation of the MTProtocol #202

Closed kuangke9527 closed 1 year ago

kuangke9527 commented 1 year ago

I checked the source code and did not find the socket connection code. I would like to ask is it implemented in wasm? I need help. Thanks.

morethanwords commented 1 year ago

Here is the websocket part.

moehmeni commented 1 year ago

Can you please explain how the requests are not shown in the network tab of the browser? because normally WS requests should be shown, but somehow they are not for telegram web.

a more detailed question that I asked on SO: https://stackoverflow.com/questions/77549251/how-does-telegram-web-hide-its-api-requests-from-the-browser-network-tab

pangrr commented 10 months ago

+1

pangrr commented 10 months ago

src/lib/mtproto/transports is not shown in chrome Sources tab. Why?

morethanwords commented 10 months ago

src/lib/mtproto/transports is not shown in chrome Sources tab. Why?

Because that part is in shared worker. Find mtproto.worker.ts here: chrome://inspect/#workers.