AltspaceVR / AltspaceSDK

Software Development Kit for AltspaceVR
https://developer.altvr.com/
MIT License
161 stars 73 forks source link

Allow apps to establish a sync connection before initiating the rest of the app #185

Closed brianpeiris closed 7 years ago

brianpeiris commented 7 years ago

Previously, when a synced app loaded for the first time, we would resolve the sync.connect() promise and then change the URL immediately to append the sync instance id. This would cause apps to start loading and rendering their scene only to be reloaded by the URL change.

This PR changes sync.connect() so that it rejects the promise if there is not already a sync instance id in the url. This allows apps to avoid loading and rendering a scene on initial load.