add https/wss support for websockets