How can i get the errors during connection or send message of websocketclient ?
Do you see anything in the browser console?
yes sure but how can catch with component these errors ?
Hi,
Currently this is not possible to do. A try..finally won't work and while there is an onerror
event for the underlying websocket object, it was not exposed at component level: Javascript doesn't catch error in WebSocket instantiation - Stack Overflow
It's worth to mention the onerror
won't provide you with specific information regarding to why a connection failed, but I'm putting this on our todo list to investigate how it behaves and how to expose it best.
Having a onerror event is enougth to retry connection for example...