indicates the version number of the OPCUA protocol used
createChunk is used to construct a pre-allocated chunk to store up to length bytes of data.
The created chunk includes a prepended header for chunk_type of size self.headerSize.
chunk type. should be 'F' 'C' or 'A'
a buffer object with the required length representing the chunk.
Note:
write method before an other one is created.disconnect the TCP layer and close the underlying socket.
The "close" event will be emitted to the observers with err=null.
write the message_chunk on the socket.
Notes:
createChunk.createChunk again.Generated using TypeDoc
a ClientTCP_transport connects to a remote server socket and initiates a communication with a HEL/ACK transaction. It negotiates the communication parameters with the other end.
const transport = ClientTCP_transport(url); transport.timeout = 10000; transport.connect(function(err)) { if (err) { // cannot connect } else { // connected } }); .... transport.write(message_chunk,'F'); .... transport.on("message",function(message_chunk) { // do something with message from server... });