Sockets.io should follow the protocol used by the client hitting the dashboard

This small patch will create the socket.io connection on the client using the same protocol that the client used to connect to the website. So if they are using HTTPS, then the WebSocket (or fall backs) will use a secure link.