allow turning WebSocket on/off