Saturday 27 June 2020

How can I extract useful information from an onerror event in the websocket ws module?

ws_connection.onerror = (event) => { // websocket has encountered an error... log_msg('onerror event fired for ' + connection_name + ' with event of '+JSON.stringify(event)) } // end of ex[exName]['wsConn'].onerror = (event) => { The above code doesn't work...It gives the error that the event object contains circular references or something like that...How can I figure out what the event is that caused the error?Thank you.

Submitted June 28, 2020 at 07:04AM by grumpyThrifter

No comments:

Post a Comment