Hub getting ‘stuck’ when tethering.
under review
A
Alan Berlyn 🇬🇧 (66alan66)
Hi Alfie,
I’m still continuing to enjoy this great platform.
I’ve noticed that when I try to play on the move and tethering my iPad Pro to my iPhone 13 Pro, the game frequently stops responding. I’m usually just waiting for the opponent to move (or so it appears). If I refresh, it then allows me to see they’ve already moved.
I’m not a programmer, but have had a similar experience before where it turned out that because not much data is being transferred, the ‘connection’ goes to sleep. Could something similar be happening here? Does it need a regular (1 second?) piece of data to be sent to keep the ‘connection’ active?
I should add that if I switch to just using the phone to play it works fine, no hanging, which is what makes me think it’s a tethering issue.
Also, watching Netflix or YouTube while tethering is fine, so it’s an issue I have with Hub.
Hope this is something you can investigate.
I’m happy to work with you so you can try and see what’s going on.
B
Backgammon Hub Admin
under review
A
Alfie Kirkpatrick [Developer]
Hi Alan Berlyn 🇬🇧 (66alan66), that's interesting and useful info.
When it's your opponent's turn, Hub sends a request every 10 seconds to the server to double check if the match state has changed without your device being notified (ie. to see if your opponent has moved). This should keep the connection alive.
Hub uses a websocket connection to the server, as opposed to regular web traffic (stateless) or the streaming protocols. It uses Amazon API Gateway so I don't have any control of the server end.
I can't immediately think why it would be different when tethered. If it's easily repeatable, we could do some experiments on the beta site where I can add additional logging if necessary.
A
Alan Berlyn 🇬🇧 (66alan66)
Alfie Kirkpatrick [Developer]I think it would be repeatable as every time I've played on the iPad tethered to the iPhone it has been very hangy.
Let me know when you'd like to experiment.
A
Alfie Kirkpatrick [Developer]
Alan Berlyn 🇬🇧 (66alan66) I'd like to pick this up again. Can you try to reproduce the issue on beta.backgammonhub.com, playing a bot match. If you manage to reproduce it, let's continue on email: admin@backgammonhub.com. I can make more frequent changes on the beta site and add more debug logging. Thanks