(I'm using native C++...)
I have a datachannel to which I send, say, 1024 bytes of binary data via Send()
I understand that the data is buffered internally on the sending end, but when OnMessage() is called will I get the entire/exact chunk, or could it appear in different sizes?
I need to know whether or not my receiving code needs to implement a parser...
ie.,
Send (1024 bytes) ---> OnMessage (1024 bytes)
OR
Send (1024 bytes) --> OnMessage (512 bytes), OnMessage (512 bytes)
Likewise,
Send (1024 bytes), Send (512 bytes) --> OnMessage (1536 bytes)
OR
Send (1024 bytes), Send (512 bytes) --> OnMessage (1024), OnMessage (512)
Thanks!