I have an ionic angular app where i am using websocket client to communicate with server. It is failing and I am unable to get the error details for the failures. the code looks like below
ws.addEventListener('error', (event:any) => {
console.error("The socket had an error", event);
alert('event is:' + event.message)
this.messageQueue.presentToast("Error connecting to chat server",false,0)
});
the event.message is undefined. So how do i find what exact error is coming here?