ronaldkwandy

Untitled

May 15th, 2019
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const socket = new SockJS(GajiIdSettings.API_ADDRESS + NotificationConstants.MAIN_NOTIF_URI);
  2.       const stompClient = Stomp.over(socket);
  3.       stompClient.debug = null; // disable Stomp log, comment this line to see the log
  4.       stompClient.connect({}, (frame) => {
  5.         stompClient.subscribe(NotificationConstants.TOPIC_NOTIF_ALL, (msg) => {
  6.           this.onNotificationData(msg);
  7.         });
  8.         stompClient.subscribe(NotificationConstants.TOPIC_NOTIF + '/' + this.userLogin.id, (msg) => {
  9.           this.onNotificationData(msg);
  10.         });
  11.       });
Advertisement
Add Comment
Please, Sign In to add comment