Open h0uz3 opened 8 years ago
Will the speed be comparable? If so, you could measure the time needed to fetch a (sufficient large) resource in order to guess the connection. Web Apps have no way to query it AFAIK.
Speed is not the issue, reliability in some environments (read: 33C3) is. NodeJS is able to determine a connection's source address, hence find out where it comes from. As long as WiFi and Wired Network has different IP ranges (which is likely), this can be distinguished.
WiFi can be laggy, therefore we need a way to recognize users that connect via WiFi and notify them to use wired Ethernet.