I'm using the JavaScript client to connect to a production light streamer server. Occasionally there is a sync error and the subscription needs to be remade. This is fine, but the issue is that the JavaScript client never fires an event and the status remains as "CONNECTED:HTTP-STREAMING" despite the fact that when checking the "Network" tab I can see sync errors being returned by the server.

The server response looks like:

/*window.LS_lastError = {};
window.LS_lastError[1] = "sync error";

I've tried hooking into all of the events in the Server-sent errors section of the client documentation but am still not getting anything telling me the client is in an error state.

any help is much appreciated. Thanks.