Hey guys ! I believe I found a bug, when I start a connection using b4j_ws.js the client is disconnected from the server and tries a new reconnection, all events are duplicated (always send 2 events equal to the server)...
And only goes back to normal, if I reload the client (html page).
screenshot explaining :
is it a bug or is it something I'm not seeing?
And only goes back to normal, if I reload the client (html page).
B4X:
2021-05-28 22:38:33.651:INFO::main: Logging initialized @151ms to org.eclipse.jetty.util.log.StdErrLog
2021-05-28 22:38:33.828:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_291-b10
2021-05-28 22:38:33.888:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-05-28 22:38:33.888:INFO:oejs.session:main: No SessionScavenger set, using defaults
2021-05-28 22:38:33.890:INFO:oejs.session:main: node0 Scavenging every 600000ms
2021-05-28 22:38:33.919:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@5442a311{/,file:///D:/Waldemar%20Lima/Documents/b4j/Libraryes/GuessMyNumberWithReconnection/WebAppHelloWorld/Objects/www/,AVAILABLE}
2021-05-28 22:38:33.925:INFO:oejs.AbstractNCSARequestLog:main: Opened D:\Waldemar Lima\Documents\b4j\Libraryes\GuessMyNumberWithReconnection\WebAppHelloWorld\Objects\logs\b4j-2021_05_29.request.log
2021-05-28 22:38:34.208:INFO:oejs.AbstractConnector:main: Started ServerConnector@1e397ed7{HTTP/1.1,[http/1.1]}{0.0.0.0:51042}
2021-05-28 22:38:34.209:INFO:oejs.Server:main: Started @713ms
Connected ' first connection
Creating new state. Number = 83
(MyMap) {which=229, metaKey=false, target=txtnumber}
(MyMap) {which=229, metaKey=false, target=txtnumber}
Waiting for value (4 ms)
onWebSocketError: null ' turning off the wifi
Disconnected
Connected ' turning the wifi on again
Reusing previous state. Number = 83
' I just clicked the button once: "Guess!" and log 2 events in same time ...
Waiting for value (6 ms)
Waiting for value (28 ms)
screenshot explaining :
is it a bug or is it something I'm not seeing?