Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lkrocek
Binge Watcher

Unable to send big data over roStreamSocket

Hi all,

I am using roStreamSocket. I figured out there is some inner limitation probably timing. On Roku Stick I am able to send up to 131,072 characters over socket, if send one more character connection will be closed, rest of application continue regularly after connection close but it's not able to send it. I test it on newer device Roku Ultra and it's also reproducible but with higher limit it's over 800,000 characters, didn't try to figure out exact number, this is hard to reach to me but still could be possible to have a problem with this limit.

I know it seems a big numbers but it doesn't I am using it for communication based on JSON format, not a binary data which actually also might be possible to send over it.

I tried to send 131073 characters with one frame with 131073 size or separate it into many smaller with 1024 limitation or 126 to be in roStreamSocket?

NOTE: you can see that lib has observers in init instead on run function, I tried to switch it but didn't helped, still same.
Platforms integration specialist
====================
@ https://suite.st/
0 Kudos
1 REPLY 1
lkrocek
Binge Watcher

Re: Unable to send big data over roStreamSocket

ok, solved, was a timeout issue on server-side.

Want to mention the transfer speed about sending data on server is about 12KB/s on Roku Stick 3500EU (9485) WiFi, 70KB/s Roku Ultra via Ethernet. So speed is not for bigger data.
Platforms integration specialist
====================
@ https://suite.st/
0 Kudos