• Parameters

    • task: string
    • endpoint: string = 'https://localhost:3000/dispatch'

    Returns Promise<number>