In Spring Using Websockets Getting This Error,uncaught Type Error: Onrecieve Is Not A Function(..) Stomp.js
I am getting this error: uncaught type error: onrecieve is not a function(..) stomp.js Can anyone help me and provide me complete setting using stockjs, stomp and jars? My file:
Solution 1:
Your issue stems from an errant extra argument that you pass to the subscribe
method.
stompClient.subscribe("/topic/portfolio",{},function(msgput){
console.log("msg:"+msgput.body);
});
should become:
stompClient.subscribe("/topic/portfolio",function(msgput){
console.log("msg:"+msgput.body);
});
Post a Comment for "In Spring Using Websockets Getting This Error,uncaught Type Error: Onrecieve Is Not A Function(..) Stomp.js"