PureConnect

 View Only
Discussion Thread View

ICWS using Javascript (AMD)

  • 1.  ICWS using Javascript (AMD)

    Posted 03-31-2022 02:38
    Edited by JIMMY KWAN 03-31-2022 03:23
    Hi there,

    I am trying to use ICWS to get queue and agent statistic information and display it in a simple HTML page. I manage to get the Javascript (AMD) sample script work partially but the guide does not say how to use the js script provided in SDK.

    I am not sure what to put in at below section.

    function startServerSentEventsMessageProcessing() {
    if (!eventSource) {
    var parameters = new Messaging.$messages.EventSource.params({});

    eventSource = new Messaging.$messages.EventSource(parameters, { message: handleMessage });
    };
    }

    Anyone can give me a quick guide or a working sample that i can refer to?

    #Integrations

    ------------------------------
    JIMMY KWAN
    ITApps Sdn Bhd
    ------------------------------