Preparing search index...
The search index is not available
matter.js-monorepo
matter.js-monorepo
@project-chip/matter.js
interaction
InteractionClientMessenger
Class InteractionClientMessenger
Hierarchy (
view full
)
IncomingInteractionClientMessenger
InteractionClientMessenger
Index
Constructors
constructor
Properties
exchange
Methods
calculate
Maximum
Peer
Response
Time
close
get
Exchange
Channel
Name
next
Message
read
Data
Reports
send
send
Invoke
Command
send
Read
Request
send
Status
send
Subscribe
Request
send
Timed
Request
send
Write
Command
throw
If
Error
Status
Message
wait
For
wait
For
Success
create
Constructors
constructor
new
Interaction
Client
Messenger
(
exchange
,
exchangeProvider
)
:
InteractionClientMessenger
Parameters
exchange
:
MessageExchange
exchangeProvider
:
ExchangeProvider
Returns
InteractionClientMessenger
Properties
Protected
exchange
exchange
:
MessageExchange
Methods
calculate
Maximum
Peer
Response
Time
calculate
Maximum
Peer
Response
Time
(
expectedProcessingTimeMs
?
)
:
number
Parameters
Optional
expectedProcessingTimeMs
:
number
Returns
number
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Exchange
Channel
Name
get
Exchange
Channel
Name
(
)
:
string
Returns
string
next
Message
next
Message
(
expectedMessageType
?
,
expectedProcessingTimeMs
?
)
:
Promise
<
Message
>
Parameters
Optional
expectedMessageType
:
number
Optional
expectedProcessingTimeMs
:
number
Returns
Promise
<
Message
>
read
Data
Reports
read
Data
Reports
(
expectedSubscriptionIds
?
)
:
Promise
<
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
FieldType
<
(
...
)
>
;
dataVersion
:
OptionalFieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
OptionalFieldType
<
(
...
)
>
;
deltaEpochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
deltaSystemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
epochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
eventNumber
:
FieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
priority
:
FieldType
<
(
...
)
>
;
systemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
>
Parameters
Optional
expectedSubscriptionIds
:
number
[]
Returns
Promise
<
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
FieldType
<
(
...
)
>
;
dataVersion
:
OptionalFieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
OptionalFieldType
<
(
...
)
>
;
deltaEpochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
deltaSystemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
epochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
eventNumber
:
FieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
priority
:
FieldType
<
(
...
)
>
;
systemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
>
send
send
(
messageType
,
payload
,
options
?
)
:
Promise
<
void
>
Implements a send method with an automatic reconnection mechanism
Parameters
messageType
:
number
payload
:
Uint8Array
Optional
options
:
ExchangeSendOptions
Returns
Promise
<
void
>
send
Invoke
Command
send
Invoke
Command
(
invokeRequest
,
expectedProcessingTimeMs
?
)
:
Promise
<
undefined
|
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
invokeResponses
:
FieldType
<
TypeFromFields
<
{
command
:
OptionalFieldType
<
TypeFromFields
<
{
commandFields
:
...
;
commandPath
:
...
;
commandRef
:
...
;
}
>
>
;
status
:
OptionalFieldType
<
TypeFromFields
<
{
commandPath
:
...
;
commandRef
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
suppressResponse
:
FieldType
<
boolean
>
;
}
>
>
Parameters
invokeRequest
:
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
invokeRequests
:
FieldType
<
TypeFromFields
<
{
commandFields
:
OptionalFieldType
<
TlvStream
>
;
commandPath
:
FieldType
<
TypeFromFields
<
{
clusterId
:
FieldType
<
ClusterId
>
;
commandId
:
FieldType
<
CommandId
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
}
>
>
;
commandRef
:
OptionalFieldType
<
number
>
;
}
>
[]
>
;
suppressResponse
:
FieldType
<
boolean
>
;
timedRequest
:
FieldType
<
boolean
>
;
}
>
Optional
expectedProcessingTimeMs
:
number
Returns
Promise
<
undefined
|
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
invokeResponses
:
FieldType
<
TypeFromFields
<
{
command
:
OptionalFieldType
<
TypeFromFields
<
{
commandFields
:
...
;
commandPath
:
...
;
commandRef
:
...
;
}
>
>
;
status
:
OptionalFieldType
<
TypeFromFields
<
{
commandPath
:
...
;
commandRef
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
suppressResponse
:
FieldType
<
boolean
>
;
}
>
>
send
Read
Request
send
Read
Request
(
readRequest
)
:
Promise
<
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
FieldType
<
(
...
)
>
;
dataVersion
:
OptionalFieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
OptionalFieldType
<
(
...
)
>
;
deltaEpochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
deltaSystemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
epochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
eventNumber
:
FieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
priority
:
FieldType
<
(
...
)
>
;
systemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
>
Parameters
readRequest
:
TypeFromFields
<
{
attributeRequests
:
OptionalFieldType
<
TypeFromFields
<
{
attributeId
:
OptionalFieldType
<
AttributeId
>
;
clusterId
:
OptionalFieldType
<
ClusterId
>
;
enableTagCompression
:
OptionalFieldType
<
boolean
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
listIndex
:
OptionalFieldType
<
null
|
number
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
wildcardPathFlags
:
OptionalFieldType
<
TypeFromPartialBitSchema
<
{
reserved1
:
BitFlag
;
skipAttributeList
:
BitFlag
;
skipChangesOmittedAttributes
:
BitFlag
;
skipCommandLists
:
BitFlag
;
skipCustomElements
:
BitFlag
;
skipDiagnosticsClusters
:
BitFlag
;
skipFixedAttributes
:
BitFlag
;
skipGlobalAttributes
:
BitFlag
;
skipRootNode
:
BitFlag
;
}
>
>
;
}
>
[]
>
;
dataVersionFilters
:
OptionalFieldType
<
TypeFromFields
<
{
dataVersion
:
FieldType
<
number
>
;
path
:
FieldType
<
TypeFromFields
<
{
clusterId
:
FieldType
<
ClusterId
>
;
endpointId
:
FieldType
<
EndpointNumber
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
>
;
}
>
[]
>
;
eventFilters
:
OptionalFieldType
<
TypeFromFields
<
{
eventMin
:
FieldType
<
number
|
bigint
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
[]
>
;
eventRequests
:
OptionalFieldType
<
TypeFromFields
<
{
clusterId
:
OptionalFieldType
<
ClusterId
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
eventId
:
OptionalFieldType
<
EventId
>
;
isUrgent
:
OptionalFieldType
<
boolean
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
isFabricFiltered
:
FieldType
<
boolean
>
;
}
>
Returns
Promise
<
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
FieldType
<
(
...
)
>
;
dataVersion
:
OptionalFieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
OptionalFieldType
<
(
...
)
>
;
deltaEpochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
deltaSystemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
epochTimestamp
:
OptionalFieldType
<
(
...
)
>
;
eventNumber
:
FieldType
<
(
...
)
>
;
path
:
FieldType
<
(
...
)
>
;
priority
:
FieldType
<
(
...
)
>
;
systemTimestamp
:
OptionalFieldType
<
(
...
)
>
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
FieldType
<
(
...
)
>
;
status
:
FieldType
<
(
...
)
>
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
>
send
Status
send
Status
(
status
)
:
Promise
<
void
>
Parameters
status
:
Status
Returns
Promise
<
void
>
send
Subscribe
Request
send
Subscribe
Request
(
subscribeRequest
)
:
Promise
<
{
report
:
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
...
;
dataVersion
:
...
;
path
:
...
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
...
;
deltaEpochTimestamp
:
...
;
deltaSystemTimestamp
:
...
;
epochTimestamp
:
...
;
eventNumber
:
...
;
path
:
...
;
priority
:
...
;
systemTimestamp
:
...
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
;
subscribeResponse
:
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
maxInterval
:
FieldType
<
number
>
;
subscriptionId
:
FieldType
<
number
>
;
}
>
;
}
>
Parameters
subscribeRequest
:
TypeFromFields
<
{
attributeRequests
:
OptionalFieldType
<
TypeFromFields
<
{
attributeId
:
OptionalFieldType
<
AttributeId
>
;
clusterId
:
OptionalFieldType
<
ClusterId
>
;
enableTagCompression
:
OptionalFieldType
<
boolean
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
listIndex
:
OptionalFieldType
<
null
|
number
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
wildcardPathFlags
:
OptionalFieldType
<
TypeFromPartialBitSchema
<
{
reserved1
:
BitFlag
;
skipAttributeList
:
BitFlag
;
skipChangesOmittedAttributes
:
BitFlag
;
skipCommandLists
:
BitFlag
;
skipCustomElements
:
BitFlag
;
skipDiagnosticsClusters
:
BitFlag
;
skipFixedAttributes
:
BitFlag
;
skipGlobalAttributes
:
BitFlag
;
skipRootNode
:
BitFlag
;
}
>
>
;
}
>
[]
>
;
dataVersionFilters
:
OptionalFieldType
<
TypeFromFields
<
{
dataVersion
:
FieldType
<
number
>
;
path
:
FieldType
<
TypeFromFields
<
{
clusterId
:
FieldType
<
ClusterId
>
;
endpointId
:
FieldType
<
EndpointNumber
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
>
;
}
>
[]
>
;
eventFilters
:
OptionalFieldType
<
TypeFromFields
<
{
eventMin
:
FieldType
<
number
|
bigint
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
[]
>
;
eventRequests
:
OptionalFieldType
<
TypeFromFields
<
{
clusterId
:
OptionalFieldType
<
ClusterId
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
eventId
:
OptionalFieldType
<
EventId
>
;
isUrgent
:
OptionalFieldType
<
boolean
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
isFabricFiltered
:
FieldType
<
boolean
>
;
keepSubscriptions
:
FieldType
<
boolean
>
;
maxIntervalCeilingSeconds
:
FieldType
<
number
>
;
minIntervalFloorSeconds
:
FieldType
<
number
>
;
}
>
Returns
Promise
<
{
report
:
TypeFromFields
<
{
attributeReports
:
OptionalFieldType
<
TypeFromFields
<
{
attributeData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
...
;
dataVersion
:
...
;
path
:
...
;
}
>
>
;
attributeStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
eventReports
:
OptionalFieldType
<
TypeFromFields
<
{
eventData
:
OptionalFieldType
<
TypeFromFields
<
{
data
:
...
;
deltaEpochTimestamp
:
...
;
deltaSystemTimestamp
:
...
;
epochTimestamp
:
...
;
eventNumber
:
...
;
path
:
...
;
priority
:
...
;
systemTimestamp
:
...
;
}
>
>
;
eventStatus
:
OptionalFieldType
<
TypeFromFields
<
{
path
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
subscriptionId
:
OptionalFieldType
<
number
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
}
>
;
subscribeResponse
:
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
maxInterval
:
FieldType
<
number
>
;
subscriptionId
:
FieldType
<
number
>
;
}
>
;
}
>
send
Timed
Request
send
Timed
Request
(
timeoutSeconds
)
:
Promise
<
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
status
:
FieldType
<
Status
>
;
}
>
>
Parameters
timeoutSeconds
:
number
Returns
Promise
<
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
status
:
FieldType
<
Status
>
;
}
>
>
send
Write
Command
send
Write
Command
(
writeRequest
)
:
Promise
<
undefined
|
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
writeResponses
:
FieldType
<
TypeFromFields
<
{
path
:
FieldType
<
TypeFromFields
<
{
attributeId
:
...
;
clusterId
:
...
;
enableTagCompression
:
...
;
endpointId
:
...
;
listIndex
:
...
;
nodeId
:
...
;
wildcardPathFlags
:
...
;
}
>
>
;
status
:
FieldType
<
TypeFromFields
<
{
clusterStatus
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
}
>
>
Parameters
writeRequest
:
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
moreChunkedMessages
:
OptionalFieldType
<
boolean
>
;
suppressResponse
:
OptionalFieldType
<
boolean
>
;
timedRequest
:
FieldType
<
boolean
>
;
writeRequests
:
FieldType
<
TypeFromFields
<
{
data
:
FieldType
<
TlvStream
>
;
dataVersion
:
OptionalFieldType
<
number
>
;
path
:
FieldType
<
TypeFromFields
<
{
attributeId
:
OptionalFieldType
<
AttributeId
>
;
clusterId
:
OptionalFieldType
<
ClusterId
>
;
enableTagCompression
:
OptionalFieldType
<
boolean
>
;
endpointId
:
OptionalFieldType
<
EndpointNumber
>
;
listIndex
:
OptionalFieldType
<
(
...
)
|
(
...
)
>
;
nodeId
:
OptionalFieldType
<
NodeId
>
;
wildcardPathFlags
:
OptionalFieldType
<
TypeFromPartialBitSchema
<
(
...
)
>
>
;
}
>
>
;
}
>
[]
>
;
}
>
Returns
Promise
<
undefined
|
TypeFromFields
<
{
interactionModelRevision
:
FieldType
<
number
>
;
writeResponses
:
FieldType
<
TypeFromFields
<
{
path
:
FieldType
<
TypeFromFields
<
{
attributeId
:
...
;
clusterId
:
...
;
enableTagCompression
:
...
;
endpointId
:
...
;
listIndex
:
...
;
nodeId
:
...
;
wildcardPathFlags
:
...
;
}
>
>
;
status
:
FieldType
<
TypeFromFields
<
{
clusterStatus
:
...
;
status
:
...
;
}
>
>
;
}
>
[]
>
;
}
>
>
Protected
throw
If
Error
Status
Message
throw
If
Error
Status
Message
(
message
)
:
void
Parameters
message
:
Message
Returns
void
wait
For
wait
For
(
messageType
,
timeoutMs
?
)
:
Promise
<
Message
>
Parameters
messageType
:
number
Optional
timeoutMs
:
number
Returns
Promise
<
Message
>
wait
For
Success
wait
For
Success
(
expectedProcessingTimeMs
?
)
:
Promise
<
void
>
Parameters
Optional
expectedProcessingTimeMs
:
number
Returns
Promise
<
void
>
Static
create
create
(
exchangeProvider
)
:
Promise
<
InteractionClientMessenger
>
Parameters
exchangeProvider
:
ExchangeProvider
Returns
Promise
<
InteractionClientMessenger
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
exchange
Methods
calculate
Maximum
Peer
Response
Time
close
get
Exchange
Channel
Name
next
Message
read
Data
Reports
send
send
Invoke
Command
send
Read
Request
send
Status
send
Subscribe
Request
send
Timed
Request
send
Write
Command
throw
If
Error
Status
Message
wait
For
wait
For
Success
create
matter.js-monorepo
Loading...
Implements a send method with an automatic reconnection mechanism