[Libwebsockets] Best approach to combine https polling with perpetual wss connection
moodboom at gmail.com
Mon Dec 5 22:37:48 CET 2016
> If I understand these are both clients.
> Basically when your GET brings some data, you stash it (in a ringbuffer if a lot of it expected) and ask for a callback when the wss side is writable (if the wss side is disconnected, set a flag and repeat when back up). In the writable callback for wss side, send and retire a chunk of the data and ask for another writable callback if more data pending.
Perfect, thanks Andy, I'll jump in. Appreciate the help!
More information about the Libwebsockets