Using TCPROS, a Connection Header can be sent as part of the message buffer or, when using repeat messages, as its own buffer.
To check if the buffer is a connection header or message, the getMessageFromBuffer in tcpros.js converts the buffer to a String and checks for required properties sent by the publisher, like type. This is inefficient and needs a better way to detect if a connection header buffer. This could happen in subscriber.js as state isn't really assumed in tcpros.js.
Using TCPROS, a Connection Header can be sent as part of the message buffer or, when using repeat messages, as its own buffer.
To check if the buffer is a connection header or message, the
getMessageFromBuffer
in tcpros.js converts the buffer to a String and checks for required properties sent by the publisher, liketype
. This is inefficient and needs a better way to detect if a connection header buffer. This could happen in subscriber.js as state isn't really assumed in tcpros.js.