The name of the currently configured device or undefined
if not
configured.
The list of the devices on the server we're currently connected to.
The instance of FrontPanel. Throws an exception if the variable is
undefined
(use connectAndLogin to initialize it).
Whether the application is connected to the server.
The name of the currently connected server or undefined
if not connected.
Processes the error caught inside callAndCheckErrors. For example log an error and disconnect.
Updates the application UI when a connection or disconnection has occurred.
Executes func
and in case of an error call _processError and update
the UI with _updateConnectionStatus.
Configures the device with the given file.
Connects to the server and login with the given credentials.
Disconnects from the server if connected (do nothing if not connected).
Asynchronously sends the GET
request and returns the [[Promise]]
which will be resolved with the response as an array buffer when the
request is complete.
Asynchronously sends the GET
request and returns the [[Promise]]
which will be resolved with the response text when the request is
complete.
Waits for an unsolicited server reply and treats it as a server notification (throw an error on any other kind of replies). Processes device connection and disconnection notifications to update the list of devices and call onAddDevice and onRemoveDevice handlers. If the current configured device was disconnected, call disconnect.
Executes func
using setTimeout
while condition
returns true
with
ms
timeout.
Generated using TypeDoc
This class encapsulates the basic functionality of a web application using FrontPanel API via web socket interface.