code formatting
allow disabling websockets