...
When possible, JavaScript APIs should be used instead of BrightScript-Javascript Objects. The JavaScript API equivalent to this object is cec.
Methods
boolean SendRawMessage(in ArrayBuffer data)
...
Shuts down the instance, preventing it from further consuming resources. If this method is not called, garbage collection determines when the instance will be destroyed.
Example
The following JavaScript example shows how to send a set of CEC messages:
...