Closed RobertSwirsky closed 6 years ago
Hi @chatterbeak 🙂 First of all, thank you for beautiful issue description 💙
Environment variables you've set are only used for configuring production build. If you take a look at config/prod.exs
file you can see that :mongooseice
application is configured using those environment variables. That's why it won't work in dev
environment.
Port used when starting in dev isn't documented, but the STUN/TURN listeners started there are only used for debugging purposes when we are developing MongooseICE. Take a look at config/dev.exs
file and you'll see configured :servers
option. This is also why you see "Starting ..." message twice - because two listeners are started, each on different port.
Regarding debug
log messages - MongooseICE simply doesn't log that much - but you should see debug message when e.g. the client hasn't installed permission for some peer on the TURN port, but peer sends the data there anyway.
Thanks. What threw me were those odd port numbers! They aren't listed as defaults in the documentation. It would help if in debug mode it would log whenever a connection is made (I just made that change locally). It's hard to know when I got my RTCPeerConnection call right and it's actually going out to the STUN server. Thanks for this project.
I see. It might be a good idea to log more extensively in debug. Unfortunately I don't know when we'll have resources to handle that, but PRs, as always, are more than welcome 😄
Thanks for using MongooseICE 👍
My environment variables:
cleaned and built, I see this:
switched to prod:
Other oddities:
Here's the commit I'm building off of: