fixed secure web socket issues