boplish / core

Browser-based Open Publishing core libraries
Other
24 stars 1 forks source link

Support tls encrypted bootstrap server #29

Closed chris-- closed 10 years ago

chris-- commented 10 years ago

We currently do not support tls encrypted bootstrap server as we hardcoded the ws scheme:

https://github.com/boplish/core/blob/master/js/application.js#L32

makkes commented 10 years ago

We could pass 'bootstrapEndpoint' instead of 'bootstrapHost' to the BOPlishClient constructor and demand a complete URL so you'd pass in 'wss://somehost:443/ws/' and the constructor appends the client's ID to make the URL unique.

chris-- commented 10 years ago

We'd need some kind of sanity check, too (e.g. make sure there is a trailing slash in the URL).