You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-stomp and stompjs and sockjs-client.
However when the application is in background or not being used..and some other window is open..
It shows error after some time.
**const onError = (err) => {
window.alert("YES");
};**
this line gets executed and shows YES ..plz tell me how to rectify this error.?
I am using react-stomp and stompjs and sockjs-client.
However when the application is in background or not being used..and some other window is open..
It shows error after some time.
**const onError = (err) => {
window.alert("YES");
};**
this line gets executed and shows YES ..plz tell me how to rectify this error.?
const connect = () => {
const Stomp = require("stompjs");
var SockJS = require("sockjs-client");
SockJS = new SockJS("https://chat-lg.azurewebsites.net/ws");
stompClient=Stomp.over(SockJS);
stompClient.connect({}, onConnected, onError);
};
const onConnected = () => {
stompClient.subscribe(
"/user/" + currentUser.username + "/queue/messages",
onMessageReceived
);
};
const onError = (err) => {
window.alert("YES");
};
The text was updated successfully, but these errors were encountered: