Browse Source

Add note on config URL change needed with custom user data.

Lance Stout 5 years ago
parent
commit
a783af7473
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/index.tsx

+ 11 - 1
src/index.tsx

@@ -21,7 +21,17 @@ import './index.css';
 // ====================================================================
 const API_KEY: string = '';
 
-
+// ====================================================================
+// !! IMPORTANT SETUP !!
+// ====================================================================
+// If you are using custom user data, the config URL needs to be
+// switched to the /user/ endpoint, like so:
+//
+// const CONFIG_URL = `https://api.simplewebrtc.com/config/user/${API_KEY}`;
+//
+// You can find more info about custom user data at:
+// https://docs.simplewebrtc.com/#/User_Data
+// ====================================================================
 const CONFIG_URL = `https://api.simplewebrtc.com/config/guest/${API_KEY}`;
 
 const compose =