IPWorks IoT 2020 JavaScript Edition

Questions / Feedback?

Unregistered Event

Fires when a client has unregistered from notifications.

Syntax

coap.on('Unregistered', listener: (e: {readonly remoteHost: string, readonly remotePort: number, readonly URI: string, readonly URIHost: string, readonly URIPort: number, readonly URIPath: string, readonly URIQuery: string}) => void )

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 JavaScript Edition - Version 20.0 [Build 8265]