boilerplate/app/shared/websockets/websocket.service.js
function sendChat (ev) {
  if (stompClient !== null && stompClient.connected) {
    var p = '/topic/chat'
    stompClient.send(p, {}, JSON.stringify(ev))
  }
}
function sendChat (ev) {
  if (stompClient !== null && stompClient.connected) {
    var p = '/topic/chat'
    stompClient.send(p, {}, JSON.stringify(ev))
  }
}
function sendChat ( ev ) { if ( stompClient !== null && stompClient . connected ) { var p = '/topic/chat' stompClient . send ( p , { } , JSON . stringify ( ev ) ) } }
methods for sending
methods for sending