-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebRTC problem #40
Comments
Hi @pantrombka regarding your issue, it's not easy to tell what's going on from the above description but here are some hints . first, disable webrtc and use the default eureca.io transport library to check that there is no other networking issue. if it work with the default transport switch back to webrtc. activate the debug output using :
then run your server and open your client, the output could tell us what's wrong . in the client side, use chrome/chromium browser and open development tab, and check what's going on in networking tab and console tab. |
I remove transport: 'webrtc'. It works. With transport: 'webrtc' and export DEBUG="*" I can't see any messages - only
and
I changed transport: 'webrtc' to transport: 'webRTC' and I see errors:
|
the correct syntax is "webrtc" in lowercase. it strange that the debug directive is ignored, you are on a linux environment right ? |
Yes, I am in linux. Command export DEBUG="*" looks OK node -v |
when you type echo $DEBUG do you see the value "*" ? the latest version of nodejs I tested was 6.x there are maybe some breaking change in the latest version or in node-webrtc package, I'll try to make new tests asap. |
I changed nodejs to v6.10.0. Still nothing. |
When I remove " transport: 'webrtc' " I see Debug messages on the server. |
Sorry, verion of my modules: npm list eureca.io |
I just pushed the newest version to npm (it was only available on github). |
Now I have eureca.io v0.7.1. |
Can you please share what you see in the client side in chrome developement tools, Console and network tabs ? make sure to enable chrome dev tools, then refresh the client . |
network tab: |
On Firefox console: |
I still have a problem with WebRTC, but I wonder whether in my project (something like http://ezelia.com/2014/tutorial-creating-basic-multiplayer-game-phaser-eureca-io) using of webRTC is good? Performance will be better? |
Sorry for the delay. regarding the implementation, for simple multiplayer games, it won't make lot of change in performance, I made this tutorial only to show how to implement very basic multiplayer logic, it's not optimized at all ! WebRTC can be interesting in massive multiplayer games, and realtime multiplayer games . but since webRTC transport is not reliable, it'll require that you implement code to handle cases when the call fails ...etc. in most cases, the standard transports are enought, you just need to make good implementation, sometimes with lag compensation algorithms, sometimes with other technics. |
I think, it could be useful for me. So I will be waiting for fix. Thank you! |
I have a problem with webrtc transport in eureca.io.
I installed on my VPS module wrtc.
My server.js:
and client.html:
On server I see only:
On client:
Where is the problem?
The text was updated successfully, but these errors were encountered: