core: Implemented use_websocket option to disable websockets