when they connected, How to check their source ? it is from "/report/ws" Or from "history/ws"
B4X:
Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
ws = WebSocket1
'call the set date function we created
DatePicker.SetVal(DateTime.Date(DateTime.Now))
End Sub