Dear All,
I have the following code:
What I cannot get my head around is how to capture each Ws_Connected event per websocket in the array, see the last line.
I have the following code:
B4X:
Dim ws(19) As WebSocketClient
For i = 0 To ws.Length -1
ws(i).Initialize ("ws")
If ws(i).Connected Then ws(i).close
ws(i).Connect (url)
Log (i)
Next
Wait For ws_Connected
What I cannot get my head around is how to capture each Ws_Connected event per websocket in the array, see the last line.