Open ryanjcollier opened 10 years ago
We have the same issue. Non-SSL works perfectly though. Any update on this issue?
Hey guys. Thanks for playing with the framework. I'm afraid I never tested Leapstrap or Leap using SSL - hard to find time to try at the moment. Might be worth a post on leap developer forums?
I'm having difficulties loading the json file for the device websocket over a SSL connection. I'm able to circumvent the initial security "block" error by changing line 49 in leap.js from:
return "ws://" + this.host + ":" + this.port + "/v" + this.opts.requestProtocolVersion + ".json";
to
return "wss://" + this.host + ":" + this.port + "/v" + this.opts.requestProtocolVersion + ".json";
However, after doing this I receive the following error:
WebSocket connection to 'wss://127.0.0.1:6437/v4.json' failed: Error in connection establishment: net::ERR_TIMED_OUT
Any ideas? I'm currently running MAMP Pro with my SSL session mapped to a custom hostname (not 127.0.0.1) so I tried changing the hostname configuration on line 34 but still get the same error.
Any ideas? =D Thanks in advance.