I use flask_sock to establish websocket communication with my frontend. I need to wait for UUID string there, before call update_firmware_full function
@websocket.route('/reader_flasher')
def updater(websocket):
    # pylint: disable=redefined-outer-name
    update_firmware_full(websocket, device_id)
How to modify my code to do this?