Hello everyone,
is it safe and reliable for me to send multiple server information to the client this way?
Client :
B4X:
' Sending Request from Client to WebSocket Server
Dim data As Map
data.Initialize
data.Put("username", "")
wsh2.SendEventToServer("Device_Teste",data)
data.Clear
' Sub to receive Msg from Websocket Server
Sub wsh_Server_Teste(Params As List)
Log("Ingressado Autenticado !")
Dim Answer As String = Params.Get(0)
Log(Answer)
End Sub
Server Websocket Sub :
B4X:
'Sub to Send data to Client
Sub Device_Teste(Params As Map)
Log("Teste Call")
For i = 1 To 500
ws.RunFunction("Server_Teste", Array As Object(i))
ws.Flush
Next
End Sub
my fear is that the information that would be sent frame by frame to the client would exceed 65565 bytes of packet size. So from my point of view, sending one by one would not have memory overflow, right?
my fear is that the information that would be sent frame by frame to the client would exceed 65565 bytes of packet size. So from my point of view, sending one by one would not have memory overflow, right?