wilkesalex / leapstrap

Leapstrap - Leap Motion HTML5 CSS web frontend framework. Based on Bootstrap.
http://wilkesalex.github.io/leapstrap
57 stars 12 forks source link

Leapstrap over SSL #7

Open ryanjcollier opened 10 years ago

ryanjcollier commented 10 years ago

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.

adcoolguy commented 9 years ago

We have the same issue. Non-SSL works perfectly though. Any update on this issue?

wilkesalex commented 9 years ago

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?