开发者

How does Omegle direct connect with HTTP Protocol?

Every ajax chat 开发者_JAVA百科tutorial ends the same.

You run a getChatMsg.php or some script every X milliseconds to check for new messages.

But not omegle.com they only send you a packet when you really need it not every X milliseconds.

For example I run every ajax chat tutorial i setup and sniff the packets I get a flow of getChatMsg or similar every second when I'm not even typing yet. Omegle handles it perfectly without using any external object like FLASH.

How do they do this direct connect? can anyone figure it out could you please help me out I've been trying to figure this out for weeks and i'm going crazy due to how much bandwidth it will waste doing it the current way.


I guess they are using a comet mechanism

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜