IPWorks IoT 2020 Node.js Edition

Questions / Feedback?

Unregistered Event

Fires when a client has unregistered from notifications.

Syntax

coap.on('Unregistered', [callback])

Callback

The 'callback' is called when the 'Unregistered' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.remoteHost
e.remotePort
e.URI
e.URIHost
e.URIPort
e.URIPath
e.URIQuery

Remarks

This event fires anytime a client has unregistered itself from further notifications for the resource identified by URI. Refer to the StartObserving and SendNotification methods, as well as the Notification and Register events, for more information about observing resources and resource change notifications.

The RemoteHost parameter reflects the client's IP address or hostname.

The RemotePort parameter reflects the client's port.

The URI parameter identifies the resource that the client has stopped observing.

The URIHost, URIPort, URIPath, and URIQuery parameters are provided for additional convenience

Note: This event is only used when the class is operating in server mode (i.e., when the Listening property is enabled).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 Node.js Edition - Version 20.0 [Build 8265]