The principle of promotion has been determined, now see the concrete implementation. With respect to server-side implementations, the implementation of the client chat room can be trickier. Because the client chat room is not like a web chat room,
Before we introduce the main body, let me introduce the background and principle of websocket:
Background
In the browser can only achieve one-way communication through HTTP, comet can simulate two-way communication to some extent, but the
Some time ago there is some free time, and then a course to ask to engage in a chat room, so use SPRINGMVC and hibernate to make a good chat room project, the page is more beautiful.Many do not say, first, personally think is a boutique:Login:
Webhostforasp2006/10/29
15M Free home space, monthly 2G traffic restrictions, web upload management files, support for ASP.net, ASP, PHP, Perl, CGI, and Access databases, no ads. Must have a top-level domain to apply, because there is no rich
Mobile development-third-party chat service and third-party chat in mobile development
The popularity of mobile Internet has spawned a large number of third-party services, such:
-Umeng and Flurry
-JPush and push of the remote message PUSH
In recent days reviewed the next Java Network programming socket use I think that although the following content is very basic but if you want to make a good thing and want to learn quickly, we must first lay the foundationIf the foundation is good,
Emoticons Chat Entertainment
With the continuous development of the network, people have been accustomed to the network in this illusory world using chat tools to communicate, although the expression of feelings is not like real life so true, but
Emoticons Chat with the development of the network, people have been accustomed to the network in this illusory world using chat tools to communicate, although the expression of feelings is not like real life so true, but also to our life has
In the previous section we talked about the service-side set-up of the instant messaging program, and today we are implementing the client login.
Just like we QQ login need a unique QQ number, of course, the QQ number is used for a long time, and
First, the homepage contains a text input and an IFRAME that shows the chat content, and a hidden IFRAME used to submit the form:
CopyCode The Code is as follows: // Chat. php
Header ('cache-control: Private ');
Header ('content-type: text/html;
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.