I'd like to stream data over a WebSocket connection using Yaws. I've read the Yaws documentation about Streaming Data and Web Sockets, and I found the Yaws API functions below that seem relevant:
yaws_api:websocket_send(Pid, {text, <<"hi there!">>}).
yaws_api:stream_chunk_deliver(YawsPid, BinData).
yaws_api:stream_chunk_end(YawsPid).
But it's not clear how they're related, or even if they're related. Can anyone explain how to stream multiple chunks of data over a Yaws websocket connection such that the receiver sees all the chunks as one fragmented message?