Hello everyone,
is it safe and reliable for me to send multiple server information to the client this way?
Client :
Server Websocket Sub :
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