I use web socket lib in my b4J server app.
Sometimes i get:
I connect to my server from B4A app using websocket lib.
As i figure out it is thrown when client disconects while serwer sends data to.
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/io/EofException.html
Is there a way to catch this exception?
Here is the code i use:
Sometimes i get:
B4X:
java.lang.RuntimeException: org.eclipse.jetty.io.EofException
As i figure out it is thrown when client disconects while serwer sends data to.
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/io/EofException.html
Is there a way to catch this exception?
Here is the code i use:
B4X:
For i=0 To ActiveConnections.Size-1
Dim wsc As WSController
wsc = ActiveConnections.GetValueAt(i)
If wsc<>Null Then
wsc.ws.RunFunction(command, params)
wsc.ws.Flush
End If
Next