The STOMP protocol, and consequently Best STOMP, support the setting and sending of custom headers during connection, subscription requests, and message exchanges.
Custom headers can be sent during the connection request using the ConnectParametersBuilder's WithHeader function. You can call WithHeader multiple times to add more than one header:
Brokers can also send headers while acknowledging the connection. These broker-sent headers are accessible through the ServerParameters's Headers dictionary:
A client can add additional metadata to its outgoing messages during message sending using the MessageBuilder's WithHeader call. Any header added by the client be retained by the broker and any receiving client can retrive them.
To add a header to an outgoing message the MessageBuilder's WithHeader can be used: