Electron TCP/Websocket security

Thanks @developer_bt

I had just noticed that, interesting development, although it does look like I might struggle to fit it as I already have quite a large firmware.
Problem with the publish feature is only that it cannot be used to create a persistent websocket connection.