Adding "switch" for toggling wss/ws.