StompConnectHeaders

Creates an instance of StompConnectHeaders with the given host header. Optional headers can be configured using the configure lambda.


fun StompConnectHeaders(host: String?, acceptVersion: List<String> = StompVersion.preferredOrder.map { it.headerValue }, login: String? = null, passcode: String? = null, heartBeat: HeartBeat? = null, customHeaders: Map<String, String> = emptyMap()): StompConnectHeaders

Deprecated

This overload will be removed in a future version, please use the overload with lambda instead to set optional headers.

Replace with

import org.hildan.krossbow.stomp.headers.StompConnectHeaders
StompConnectHeaders(host) {
    this.acceptVersion = acceptVersion
    this.login = login
    this.passcode = passcode
    this.heartBeat = heartBeat
    putAll(customHeaders)
}