boilerplate/app/shared/websockets/websocket.service.js
function subscribeToChat () {
  console.tron.log('Subscribing to Chat')
  if (!subscriptions.hasOwnProperty('chat')) {
    subscriptions.chat = { subscribed: true }
    connection.then(() => {
      chatSubscriber = stompClient.subscribe('/topic/chat', onMessage.bind(this, 'chat'))
    })
  }
}
function subscribeToChat () {
  console.tron.log('Subscribing to Chat')
  if (!subscriptions.hasOwnProperty('chat')) {
    subscriptions.chat = { subscribed: true }
    connection.then(() => {
      chatSubscriber = stompClient.subscribe('/topic/chat', onMessage.bind(this, 'chat'))
    })
  }
}
function subscribeToChat ( ) { console . tron . log ( 'Subscribing to Chat' ) if ( ! subscriptions . hasOwnProperty ( 'chat' ) ) { subscriptions . chat = { subscribed : true } connection . then ( ( ) => { chatSubscriber = stompClient . subscribe ( '/topic/chat' , onMessage . bind ( this , 'chat' ) ) } ) } }
methods for subscribing
methods for subscribing