observable

fun observable(type: CoapMessageType = CoapMessageType.CON)(source)

Makes the resource observable (RFC 7641) with notifications of type.