problem at Entity position update with web-sockets

Hi.

I’m building a Cesium based Aircraft-Tracker(ADS-B Client).

at first , I build a AJAX-Version of it. it’s works fine.

now I’m trying transfer it to Web-Socket version.

but it’s not working now.

The data format of both does not have the difference.

Update timing of Ajax Version is depend on setTimeout method.

update timing of Web-Socket version is asynchronous.(Depend on Data-Recieve from Aircrafts)

I’m facing following Errors.

and I can’t find any solutions.

--------Error message---------------

An error occurred while rendering. Rendering has stopped.

RangeError: Invalid array length

RangeError: Invalid array length

at K (http://localhost:3000/Build/Cesium/Cesium.js:456:27890)

at et (http://localhost:3000/Build/Cesium/Cesium.js:456:29728)

at dt (http://localhost:3000/Build/Cesium/Cesium.js:457:2698)

at vt.render (http://localhost:3000/Build/Cesium/Cesium.js:457:8493)

at P.render (http://localhost:3000/Build/Cesium/Cesium.js:462:15630)

at t (http://localhost:3000/Build/Cesium/Cesium.js:462:2645)

This particular error usually indicates you gave Cesium bad data, either undefiend or NaN values. It’s hard to provide additional help without seeing the code.

I would also recommend developing against the unminified version of Cesium, which will provide better error checking and more relevant callstacks.