Live Refresh won't handle errors

Hi there,

I have a ServerConnect element that I use Live Refresh with Sockets. However, if there is an error, it won’t throw an error, it will continue to sit executing for an indefinite amount of time.

Example:


However, when I take Live Refresh off, the error can be handled.

Do I need to add something else into my custom module other than throw new RangeError?

Any advice would be greatly appreciated.

Cheers
Michael

Just want to bump this up to see if anyone has any idea how to handle this.

Try/Catch also responds with this.res.status is not a function in the webserver logs.

Cheers
Michael