Logic Machine Forum
Websocket closed problem - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Websocket closed problem (/showthread.php?tid=581)



Websocket closed problem - buuuudzik - 28.01.2017

Hello,

I have a big problem with such errors:

in Safari(every few seconds after first time):
Code:
Unexpected response code: 200    :7101

wesocket closed                  :core.js.gz:1


in Firefox:
Code:
websocket closed                 core.js.gz:1:11610

I've checked this line(core.js.gz:1:11610) in Debugger and the cause is probably somewhere here(the last letter is 11610 from line 1):
Code:
error:checkObjectUpdate,success:checkObjectUpdate,timeout:6e4})}function cwarn(t){"object"==typeof console&&c

This errors cause alert in visualisation on iPhone and iPad that "Remote server doesn't respond" and after this alert the visualisation has no or only partly update. The same probably is on the android but there is no alert there.

The problem is on both LM4(very simple visu, 1 page) and LM LB(a lot of pages) with firmware 20160927.

It is variable when this alert will be displayed but normally after 30s or 1min.

Has somebody similar situation?


RE: Websocket closed problem - buuuudzik - 28.01.2017

I see that the cause is when visualisation can't reach e.g. image which has unreachable address.


RE: Websocket closed problem - admin - 30.01.2017

This is probably caused by client losing WiFi connection. There are some reliabilty improvements added in the upcoming FW.


RE: Websocket closed problem - buuuudzik - 30.01.2017

No, this is caused when image or camera or site in frame isn't reachable. On Safari this produce disconnection of whole or partly visu, in other source.

If it is about improvements maybe you can add these(ideas):
- variable time of refreshing camera in image,
- variable source(local, remote; if local is not reachable then try remote source),
- information if client is local or remote? Or autochange visumode from local to remote if client is remote.


At this moment I've prepared some solutions for managing the cameras in optimal way by javascript but above points could be very helpful especially because there is no support for RTSP streaming so managing a lot of cameras in professional way with an optimal bandwidth consumption can be a challenge.