Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2020 17:58
What would you like to do?
Sending the Message
// Inside MessageListener.update(Observable , Object )
public void update(Observable messageQueue, Object parameters) {
if (messageQueue instanceof MessageQueue) {
MessagingService messagingService = MessagingService.getInstance();
messagingService.send(userId, messageQueue.getMessage());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment