morethanwords / tweb

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

[BUG] How to disable websocket and enable https? #59

Closed kimmy-wang closed 2 years ago

kimmy-wang commented 3 years ago

How to disable websocket and enable https?

screenshot-20211018-151101

screenshot-20211018-151231

karevan commented 2 years ago

i have this question :(

morethanwords commented 2 years ago

Has been fixed in 1.0.0 (42). Application now automatically detects available transport between WebSocket and HTTPS. MTPROTO_HTTP constant now works too.

karevan commented 1 month ago

I have a question regarding the Telegram Web K version. I noticed that it supports both WebSocket and HTTP protocols for communication with the server. Could you please explain why both protocols are used simultaneously in the web version? What are the specific advantages of using WebSocket alongside HTTP for this purpose?

Thank you in advance for your clarification!