How to use the node-opcua-service-subscription.EventFilterResult function in node-opcua-service-subscription

To help you get started, we’ve selected a few node-opcua-service-subscription examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-server / src / server_subscription.js View on Github external
function analyseEventFilterResult(node, eventFilter) {
    assert(eventFilter instanceof EventFilter);
    const selectClauseResults = checkSelectClauses(node, eventFilter.selectClauses);

    const whereClauseResult = new subscription_service.ContentFilterResult();

    return new subscription_service.EventFilterResult({
        selectClauseResults: selectClauseResults,
        selectClauseDiagnosticInfos: [],
        whereClauseResult: whereClauseResult
    });
}