Home > Back-end >  Java offline messages
Java offline messages

Time:10-19

Java in asking which give instruction how to send and receive offline message, my little system is to use Java and JSP dynamic web project using websocket now done group and single message, but only online, is there any way to do offline, thank the bosses
Environment eclipse
Idk: 11.0.1

CodePudding user response:

Websocket probably understand once, messages sent by itself should not be stored, if you want to offline messages, it means that the goal of the message, if the target is offline, you need to put the message stored (there are many ways to save choose according to volume), after waiting for target online, read from the saved data and sent to its target, simple websocket may not be possible,

CodePudding user response:

Yes, I also know some, such as message queues are similar, but there are some weakness, I collapsed

CodePudding user response:

reference 1st floor weixin_40290083 response:
websocket probably understand once, messages sent by itself should not be stored, if you want to offline messages, it means that the goal of the message, if the target is offline, you need to put the message stored (there are many ways to save choose according to volume), after waiting for target online, read from the saved data and sent to its target, simple websocket may not be achieved,

You say good implementation in the websocket message queue, or other storage methods

CodePudding user response:

Did not understand, also don't know, in front of the project with the MQTT, use of software is mosquitto, then the front end will use websocket, so mosquitto should integrate the websocket, will probably understand the websocket, not too deep,

CodePudding user response:

reference 4 floor weixin_40290083 response:
did not understand, also don't know, the previous projects involving the MQTT, use of software is mosquitto, then front to use websocket, so mosquitto integrated websocket, will probably understand the websocket, not too deep,

Ok, thank you for the
  • Related