MessageBuilder Class
            Extends MessageBuilderBase
        
        
            Module: opcua.miscellaneous
Constructor
MessageBuilder
        
                
                    (
        
        
        
        
        
        
        
        
            
        
            - 
                                
options 
Parameters:
- 
                                
optionsObject- 
                                            
securityModeMessageSecurityModethe security Mode
 - 
                                            
[objectFactory=factories]optionala object that provides a constructObject(id) method
 
 - 
                                            
 
Item Index
Methods
_append
                    
                            
                                (
                    
                    
                    
                            private
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
message_chunk 
                            append a message chunk
                        
                    
                            Parameters:
- 
                                            
message_chunkObject 
_read_headers
                    
                            
                                (
                    
                            
                                Boolean
                            
                    
                    
                            private
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
binaryStream 
Parameters:
- 
                                            
binaryStreamObject 
Returns:
                                            Boolean:
                                
                            encode_decode_round_trip_test
                    
                            
                                (
                    
                            
                                
                            
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
obj - 
                                            
[options] - 
                                            
callback_buffer 
Parameters:
- 
                                            
objObject: object to test ( the object must provide a binaryStoreSize,encode,decode method
 - 
                                            
[options]Object optional - 
                                            
callback_bufferObject 
Returns:
                                            :
                                
                            extract_values
                    
                            
                                (
                    
                            
                                
                            
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
array - 
                                            
[dimensions = null] 
Parameters:
- 
                                            
arrayArrayflat array containing values
 - 
                                            
[dimensions = null]Arrayoptional dimension of the matrix if data is a matrix
 
Returns:
                                            :
                                
                            feed
                    
                            
                                (
                    
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
data 
                            Feed message builder with some data
                        
                    
                            Parameters:
- 
                                            
dataObject 
packet_analyzer
                    
                            
                                (
                    
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
buffer - 
                                            
id - 
                                            
padding - 
                                            
offset - 
                                            
custom_options 
Parameters:
- 
                                            
bufferBuffer - 
                                            
idObject - 
                                            
paddingInteger - 
                                            
offsetInteger - 
                                            
custom_optionsObject- 
                                                        
factoryObject- 
                                                                    
constructObjectFunction 
 - 
                                                                    
 
 - 
                                                        
 
Events
chunk
                        
                    
                    
                    
                    
                    
                        
                    
                        
                            notify the observers that new message chunk has been received
                        
                    
                            Event Payload:
- 
                                            
messageChunkBufferthe raw message chunk 
error
                        
                    
                    
                    
                    
                    
                        
                    
                        
                            notify the observers that an error has occurred
                        
                    
                            Event Payload:
- 
                                            
errorErrorthe error to raise 
full_message_body
                        
                    
                    
                    
                    
                    
                        
                    
                        
                            notify the observers that a full message has been received
                        
                    
                            Event Payload:
- 
                                            
full_message_bodyBufferthe full message body made of all concatenated chunks. 
invalid_sequence_number
                        
                    
                    
                    
                    
                    
                        
                    
                        notify the observers that a message with an invalid sequence number has been received.
Event Payload:
- 
                                            
expectedNumbersequence Number
 - 
                                            
actualNumbersequence Number
 
message
                        
                    
                    
                    
                    
                    
                        
                    
                        notify the observers that a full message has been received
Event Payload:
- 
                                            
objMessageObjectthe decoded message object
 - 
                                            
msgTypeStringthe message type ( "HEL","ACK","OPN","CLO" or "MSG" )
 - 
                                            
theNumberrequest Id
 
start_chunk
                        
                    
                    
                    
                    
                    
                        
                    
                        
                            notify the observers that a new message is being built
                        
                    
                            Event Payload:
- 
                                            
infoObject - 
                                            
dataObject 
            The NodeOPCUA API