prevent reconnects if shutdown was requested
This is the WebSocket implementation. This is odd, but it is how we can keep ourselves from being tied to a browser.
A NodeJS app that uses this library would pass in a different object than a browser implementation. NodeJS has an object that satisfies the requirements of the WebSocket (looks the same).
Clear the observers list
Called from subclasses at the end of the constructor.
Notify observers that the device is connected
Notify observers that the device has disconnected
Notify observers that the device is ready
Messed up way ts/js does function overloading
Handles routing pairing messages. Routes PAIRING_CODE and PairingResponse PAIRED/INITIAL messages to the configured PairingDeviceConfiguration
Add new observer to receive notifications from the device
the observer to notify
Remove an observer from the list of observers
the observer to remove
Generated using TypeDoc
WebSocket Paired Clover Transport
Implements code that is used to pair with a device. Depending on the application running on a device, a pairing protocol may be needed to successfully connect. This implementation sends the pairing request when the websocket is opened.