plouc / mozaik

Mozaïk is a tool based on nodejs / react / redux / nivo / d3 to easily craft beautiful dashboards
http://mozaik.rocks
MIT License
3.61k stars 363 forks source link

WebSocket does not support secured connection #28

Closed juhamust closed 9 years ago

juhamust commented 9 years ago

Even if dashboard is located behind proxy, that handles and terminates the SSL connection, the client has the protocol tied into unencrypted one.

As I see it, there should be a config option like useSSL=true that would switch the ws: to wss:.

// extensibility/src/browser/stores/ApiStore.js
ws = new WebSocket('ws://' + window.document.location.host);

Agreed?

juhamust commented 9 years ago

Ah, this is duplicate to #5

juhamust commented 9 years ago

This one done, now? https://github.com/plouc/mozaik/commit/031e2be416d4c8fcf1c75b14cc26cada2e0c9406

plouc commented 9 years ago

yes

plouc commented 9 years ago

@juhamust I close this issue as it's now supported, feel free to re-open if does not fit your needs

brenopolanski commented 6 years ago

@plouc the Mozaik v1 use wss for ws connection?

plouc commented 6 years ago

@brenopolanski it can

Moulde commented 5 years ago

It seems the demo is trying to connect to ws, which chrome blocks because it got the site via https.