floatinghotpot / socket.io-unity

socket.io client for Unity, power game client with node.js back-end
494 stars 76 forks source link

Client connects but does not emit data. #3

Open zoecarver opened 7 years ago

zoecarver commented 7 years ago

I love this module and have not stopped using it for the last 24 hours. However I am running into a problem. I opened the demo project and when I run it in the unity editor it works wonderfully. But when I build it and then run it in the unity editor simultaneously, The one in the unity editor emits properly and the one that is not in the unity editor connects (a user connected, user id: X) but does not emit anything. Do you know why this is? Is there a fix?

I am running OSX.

sonysatiou1 commented 7 years ago

In my situation of building it into .apk for android, you have to make sure the configuration of network is ".NET 2.0" instead of ".NET 2.0 Subnet"! Hoping this will help you because I'm also suffer from this problrm for days.

sonysatiou1 commented 7 years ago

Oh~And thank floatinghotpot for this awesome package, too!

zoecarver commented 7 years ago

I have updated to unity beta which should fix the building problem. But now it does not emit anything (except for connect) when I run it in the editor either. For some reason this seams really spotty. I do not have the faintest idea why it is not working.

I would love to hear from someone that got this working what the trick is, because I think this is a great package and I really want to make it work.

zoecarver commented 7 years ago

I take back what I said. Updating to unity beta does not solve the problem. It must not be a .net issue.

mihonninja commented 6 years ago

Same problem here. Can't debug out where the problem is.