IPWorks IoT 2020 Kotlin Edition

Questions / Feedback?

AddHeader Method

Adds a custom header to send with outgoing messages.

Syntax

public fun addHeader(key: String?, value: String?)

Remarks

This method is used to add user-defined headers to the list of headers held by the Headers collection property.

When SendMessage or SendData is called, all headers in the Headers collection property are added to the outgoing message.

Note that the STOMP specification defines a number of standard headers necessary for implementing the STOMP protocol. When constructing an outgoing message, the component silently ignores any user-defined headers that are already set by the component.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks IoT 2020 Kotlin Edition - Version 20.0 [Build 7941]