Skip to content

Responses and Broadcasts

grizeldi edited this page Sep 11, 2016 · 1 revision

There are 2 types of objects this library feeds to your listeners: Responses and Broadcasts. While those two classes are pretty much identical, there is a difference how they are supposed to be used.

Broadcast

  • can be received any time, no matter what your or library's internal code is doing
  • usually represent messages which z21 broadcasts to all clients simultaneously

Response

  • they are received as a response to an action that your code sent to z21
  • usually answers to data requests to z21
Clone this wiki locally