How to use the node-opcua-packet-analyzer.packet_analyzer function in node-opcua-packet-analyzer

To help you get started, we’ve selected a few node-opcua-packet-analyzer 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-secure-channel / src / message_builder.js View on Github external
MessageBuilder.prototype._safe_decode_message_body = function (full_message_body, objMessage, binaryStream) {
    try {
        // de-serialize the object from the binary stream
        const options = this.objectFactory;
        objMessage.decode(binaryStream, options);
    }
    catch (err) {
        console.log(err);
        console.log(err.stack);
        console.log(hexDump(full_message_body));
        packet_analyzer(full_message_body);

        console.log(" ---------------- block");
        let i=0;
        this.message_chunks.forEach(function (messageChunk) {
            console.log(" ---------------- chunk i=",i++);
            console.log(hexDump(messageChunk));
        });
        return false;
    }
    return true;
};
github node-opcua / node-opcua / packages / node-opcua-secure-channel / test_helpers / verify_message_chunk.js View on Github external
messageBuilder.on("full_message_body", function (full_message_body) {
        console.log("full_message_body received:");
        packet_analyzer(full_message_body);
    });
    messageBuilder.on("start_chunk", function (info, data) {

node-opcua-packet-analyzer

pure nodejs OPCUA SDK - module packet-analyzer

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis