The example has clearly told you how to receive data from the server
Server side
B4X:
Sub Timer1_Tick
'This method will raise the event on the device
ws.RunFunction("ServerTime", Array As Object(DateTime.Time(DateTime.Now)))
ws.Flush
End Sub
Client side
B4X:
Sub wsh_ServerTime(Params As List)
'example of a server push message
lblServerTime.Text = "Server Time: " & Params.Get(0)
End Sub