I get a strange behavior.
The server (b4j) runs some routines on the client (device) in the right way.
For example:
ws.RunFunction("RaisedByServer_NewNickOK", ArrayAsObject(Nick))
ws.Flush
In the case in which the routine is not present in the client code, I rightly get an error.
Only in one of these calls, the routine of the client does not run and I do not get error messages.
The method of the call is identical and also the modules are the same!
SERVER - wshPlayer
Private Sub RunOnClient_NewNickOK(Nick As String) ' <---- THIS IS OK
ws.RunFunction("RaisedByServer_NewNickOK", Array As Object(Nick))
ws.Flush
End Sub
Public Sub RunOnClient_PlayerJoinsRoom(msg As String)
Log("RunOnClient_PlayerJoinsRoom") ' <--- I get this log
ws.RunFunction("RaisedByServer_PlayerJoinsRoom", Array As Object(msg))
ws.Flush
End Sub
CLIENT - PlayerHandler
Public Sub RaisedByServer_NewNickOK(Params As List) ' <---- THIS IS OK, RUNS
Private Nick As String = Params.Get(0)
CallSubDelayed2(CallBack, EventName & "_NewNickOK", Nick)
End Sub
Public Sub RaisedByServer_PlayerJoinsRoom(params As List)
Log("RaisedByServer_PlayerJoinsRoom") ' <--- I DON'T get this log
End Sub
I realize that this explanation is poor; on the other hand I can not post both projects.
I hope this has happened to you