Hi @Erel
by your example WebSocketPush.b4j I do not understand as steps these values....
B4X:
Sub wsh_ServerReady(Params As List)
Dim m As Map
m.Initialize
m.Put("id", id) 'put into map id value readead by id.txt
m.Put("version", VERSION) 'put versione value
wsh.SendEventToServer("Device_id", m) 'send to server as Device_id event
End Sub