WebQQ message sending function

Source: Internet
Author: User
The WebQQ message sending function I have been studying WebQQ for the past few days. at first, I thought it was a socket to send messages, but later I didn't feel like it. I suspect it was implemented using ajax, I checked WebQQ's sending button element with firebug last night and found that it is an empty hyperlink without binding any events, but it can implement the message sending function, it's amazing. if ajax is implemented, there should also be a process of calling functions !! I am very grateful to anyone who knows the mysteries of this story...


Reply to discussion (solution)

Comet?

Events assigned by JS values are invisible to you.

Comet I have Baidu many materials on the Internet, all of which are based on ajax technology, but there are no more detailed examples. can you give me a specific explanation?

Events assigned by JS values are invisible to you.
Do you know how to view those js functions through firebug?

Find the node name, class or id of the button, and then CTRL + F. The binding event must be located!

It is unlikely that round robin will drag the server down.
It is suggested that it may be a socket, but it is re-connected after a certain period of time.

I spoke to Baidu again. many people say that it is a comet technology, but what kind of technology is comet technology? the code and instances it provides cannot be understood at all ..

Firebug is not visible to all requests.

Websocket? Isn't it that new?

Round Robin
Disconnect after receiving a message and continue the connection

I am not clear about Baidu's many materials. if ajax is used for communication between two clients, can ajax only return data to one of the clients? Then how did the server send data to another client?

Other people on the street on the 11 th floor have not seen it. do not mention that the owner's ability to capture packets must improve firebug.

Webqq now has a lot of research materials, but it is actually quite simple. go to this address and have a look at it. www.102.16.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.