igravitystudios / matchimals.fun

🦁 🃏 📱 An animal matching puzzle card game– built with turn-based game engine boardgame.io and React-Native + React-Native-Web
https://www.matchimals.com
MIT License
171 stars 32 forks source link

WIP: Multiplayer support 🚧 🏗 #23

Closed chrisheninger closed 6 years ago

chrisheninger commented 6 years ago

Currently running into an issue, socket debug looks like it may be this?

socket.io-parser decoded 4/matchimals,"Invalid namespace" as {"type":4,"nsp":"/matchimals","data":"Invalid namespace"} +2ms

TODO:

Stefan-Hanke commented 6 years ago

Could you please add repro steps? I've tried the following:

It looks like this opens up two different game instances. index.js on both sides contains the reference to localhost:3333.

chrisheninger commented 6 years ago

@Stefan-Hanke Yeah– those are the exact steps that I was using.

I noticed that the game wasn't syncing like I'd expect it to. Upon trying to learn how to diagnose a socket connection, I found that localStorage.debug = '*'; in your console will make it automatically log all the socket-related info. From that output I found the "Invalid Namespace" error– it could be something completely unrelated but that's all I saw that looked strange.

chrisheninger commented 6 years ago

Thanks both of you– I should have a chance in the coming weeks to give your recommendations a try. Appreciate your time.

chrisheninger commented 6 years ago

Closing for now, will re-open and implement once the native app is launched.