Mashiane Expert Licensed User Longtime User Jan 13, 2021 #1 Ola I found that one can set a payload size on connection, https://www.b4x.com/android/forum/threads/sending-binary-data-over-websocket.44776/#content before the connection is made? B4X: Dim jo As JavaObject = WebSocket1 jo = jo.GetField("options") 'WebSocketOptions jo.RunMethod("setMaxMessagePayloadSize", Array(4 * 1024 * 1024)) '4mb How can I achieve similar with BANanoServer? Thanks
Ola I found that one can set a payload size on connection, https://www.b4x.com/android/forum/threads/sending-binary-data-over-websocket.44776/#content before the connection is made? B4X: Dim jo As JavaObject = WebSocket1 jo = jo.GetField("options") 'WebSocketOptions jo.RunMethod("setMaxMessagePayloadSize", Array(4 * 1024 * 1024)) '4mb How can I achieve similar with BANanoServer? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2021 #2 Why do you need it? Upvote 0
alwaysbusy Expert Licensed User Longtime User Jan 13, 2021 #3 Erel said: Why do you need it? Click to expand... Exactly. From the payload the OP mentioned before, absolutely not needed, default is more than enough And this is a setting for the client side it appears, not the server side. Upvote 0
Erel said: Why do you need it? Click to expand... Exactly. From the payload the OP mentioned before, absolutely not needed, default is more than enough And this is a setting for the client side it appears, not the server side.
Mashiane Expert Licensed User Longtime User Jan 13, 2021 #4 alwaysbusy said: OP Click to expand... What does this mean? Guys remember, I just started BANanoServer aka jServer learning some hours ago. So this is stuff I've found here and like, anyone who wants to know, am asking questions., for clarity and knowledge. Erel said: Why do you need it? Click to expand... alwaysbusy said: absolutely not needed, default is more than enough Click to expand... Granted, the post is dated 2014, and things evolve, however, what is the default payload size? Thanks TheMash Upvote 0
alwaysbusy said: OP Click to expand... What does this mean? Guys remember, I just started BANanoServer aka jServer learning some hours ago. So this is stuff I've found here and like, anyone who wants to know, am asking questions., for clarity and knowledge. Erel said: Why do you need it? Click to expand... alwaysbusy said: absolutely not needed, default is more than enough Click to expand... Granted, the post is dated 2014, and things evolve, however, what is the default payload size? Thanks TheMash
alwaysbusy Expert Licensed User Longtime User Jan 13, 2021 #5 Mashiane said: What does this mean? Click to expand... OP stands for "original poster" on forums. Don't be so quick to take offense. Mashiane said: what is the default payload size? Click to expand... depends on the the sender, so no idea how it is configured there. Upvote 0
Mashiane said: What does this mean? Click to expand... OP stands for "original poster" on forums. Don't be so quick to take offense. Mashiane said: what is the default payload size? Click to expand... depends on the the sender, so no idea how it is configured there.
Mashiane Expert Licensed User Longtime User Jan 13, 2021 #6 alwaysbusy said: Don't be so quick to take offense. Click to expand... LOL. I honestly didn't know. I will also start using that abbreviation. Ha ha ha. Upvote 0
alwaysbusy said: Don't be so quick to take offense. Click to expand... LOL. I honestly didn't know. I will also start using that abbreviation. Ha ha ha.
Mashiane Expert Licensed User Longtime User Jan 13, 2021 #7 alwaysbusy said: absolutely not needed, default is more than enough Click to expand... I guess whatever that is... ha ha ha. Great! I will cross this bridge when I get to it then. Perfect. Upvote 0
alwaysbusy said: absolutely not needed, default is more than enough Click to expand... I guess whatever that is... ha ha ha. Great! I will cross this bridge when I get to it then. Perfect.