-
-
Save seyedsahil/50e7d4bfcdcf57bde1d10e5a2972077a to your computer and use it in GitHub Desktop.
Sending the Message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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