refactored and modularized code for the REST and websocket initialization and starting.
a https webserver and REST interface to prevent mixed content problem (fixes #266 )
The following ports are used
8081: http webserver + REST interface (no SSL)
8082: websocket (ws://)
8083: https webserver + REST interface (SSL with self-signed certificate)
8084: websocket SSL (wss://): not working yet.
also added simple websocket client, to easier test socket connections
Per default ports 8081-8083 are activated, the secure websocket does not work yet, so it was disabled.
TODO:
Maybe use CA-signed certificate for not having to add an exception when connecting to the ARE https URL on Firefox
@klues Please try it with Asterics Grid on Firefox. You will have to connect to https://localhost:8083/rest/. Before doing this surf to https://localhost:8083/ in the address bar and add an exception.
This PR introduces
The following ports are used 8081: http webserver + REST interface (no SSL) 8082: websocket (ws://) 8083: https webserver + REST interface (SSL with self-signed certificate) 8084: websocket SSL (wss://): not working yet.
also added simple websocket client, to easier test socket connections
Per default ports 8081-8083 are activated, the secure websocket does not work yet, so it was disabled. TODO:
@klues Please try it with Asterics Grid on Firefox. You will have to connect to
https://localhost:8083/rest/
. Before doing this surf tohttps://localhost:8083/
in the address bar and add an exception.