logux / client

Logux base components to build web client

Home Page:https://logux.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

status is incorrect when no connection is available.

nevf opened this issue · comments

I'm having a play with Logux using https://github.com/Mavrin/logux-example running on a Desktop PC and a Laptop, both running Windows 10. The Desktop PC is running the server and clients. The Laptop has both Ethernet and WiFi.

If I disable WifI and unplug the Ethernet connection on the Laptop the logux 'state' event doesn't fire on the client and Logux still thinks there is a connection. So when I add/remove items on the laptop these changes are never reconciled on the Desktop PC or Server after I reconnect the Ethernet cable.

From my testing ping's are not being sent from the laptop to the server. ie. sendPing() isn't being called.

Also once I disconnect the Ethernet cable the Websocket connection isn't failing.

With WifI connected and the client connected if I then disable WiFi again the client doesn't see the state change.

I have a slight feeling that the fact there is both WiFi and Ethernet maybe causing this.

If I can help with any further tests or information let me know.

A bit more information.
When I check ClientSync() options is as follows:

credentials: "test_token"
otherSynced: 91
ping: undefined
subprotocol: "1.0.0"
synced: 72
timeout: undefined

and the DEFAULT_OPTIONS aren't being assign()'d. So I assume ping isn't being used.

I've discovered that https://github.com/Mavrin/logux-example is using an older version of Logux which could well be causing my problems. so please ignore this issue for now. Sorry about that.