javascript - Websocket prevent data frame loss -


we using websocket send user activity events such clicks,mousemove,scroll,input , ... along it, send html dom snapshot too. average size of html snapshot around ~300 kb. in cases, html snapshot has not reaching our servers. below few scenarios.

  1. user stays few seconds , closes window.

  2. while in slow network

we tried sending remaining events on beforeunload event not working.

is there anyway solve problem?

as far know there no way solve this.

you can use beforeunload event gain time, cannot block until data sent asynchronously.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -