[Libwebsockets] Fwd: How can i send array strings to browser on all websockets

satya gowtham kudupudi satyagowtham.k at gmail.com
Wed Jan 1 21:11:17 CET 2014


at the browser end I'm get 2more duplicate frames for every frame i'm
sending. Here is the piece of log generated by the ws server

2014-01-02 01:24:38 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 14706 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10326)
lwsts[15175]: ***** b7113cb0 partial send moved on by 5840 (vs 7406)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1566 (vs 1566)
lwsts[15175]: ***** b7113cb0 partial send completed

2014-01-02 01:24:40 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 15040 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10660)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 7740)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 4820)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1900 (vs 1900)
lwsts[15175]: ***** b7113cb0 partial send completed

2014-01-02 01:24:42 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 14597 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10217)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 7297)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 4377)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1457 (vs 1457)
lwsts[15175]: ***** b7113cb0 partial send completed

2014-01-02 01:24:44 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 15130 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10750)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 7830)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 4910)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1990 (vs 1990)
lwsts[15175]: ***** b7113cb0 partial send completed

2014-01-02 01:24:46 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 14964 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10584)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 7664)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 4744)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1824 (vs 1824)
lwsts[15175]: ***** b7113cb0 partial send completed

2014-01-02 01:24:48 callback_echo: /viewyourworld/1780:0xb7113cb0 qued
lwsts[15175]: ***** b7113cb0 new partial sent 4380 from 14607 total
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 10227)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 7307)
lwsts[15175]: ***** b7113cb0 partial send moved on by 2920 (vs 4387)
lwsts[15175]: ***** b7113cb0 partial send moved on by 1467 (vs 1467)
lwsts[15175]: ***** b7113cb0 partial send completed

And here is the snapshot of frames received in browser(chrome).

[image: Inline image 2]


Its looking like ws server is sending only once each frame but some how its
being triplicated at the browser.

Thanks!
Gowtham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20140102/888cab5a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 86562 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20140102/888cab5a/attachment-0001.png>


More information about the Libwebsockets mailing list