added an option for insecure WebSocket connections