jsp: I am making a homepage, but this is a chat related question...

Asked 2 years ago, Updated 2 years ago, 117 views

This is a super-conservative who makes a homepage with jsp.

I think many of you have seen the real-time counseling chat in one corner of the main screen.

When I click the image button, I move on to the real-time consultation chat or

on the main screen

I want to create a real-time counseling chat room, but I can search on Google for examples

Sauce? There's no such thing, so how should I do it?

My skills are not good enough, so I can use it little by little.

From what I searched, it was composed of skills that I don't know well, such as Ajax, node.js, etc.

Is it difficult to implement 1:n chat with javatcp method?

p.s : java 1:n Chat can be implemented, but when you press the button, connect to my socket server or

I don't have a clue.I don't know what to do to get it connected to the socket port when you press the button.

I don't know. Um... I'm looking for a blog or an example.ㅜ<

jsp chatting

2022-09-22 19:28

1 Answers

If you use websocket and Ajax, you can easily implement the chat itself. You'll find a lot of data if you search on 'websocket chat'.

However, there should be some concept of socket and multi-thread. (Before html5's web socket came out, we implemented the real-time web in various ways such as reverse ajax and long polling.)

In Java, websockets are available in EE7 (servlet 3.1) and later.

Browsing is also important, but IE10 or later is required for IE.

If all older versions of browsers need to be supported, they should be implemented with technologies such as reverse Ajax and long polling.


2022-09-22 19:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.