Websocket to use for communicating with the FrontPanel over IP Server.
Returns true if the object is connected to the remote server.
This value is initially false
and becomes true
once connect
completes successfully.
No other method of this class other than connect()
can be used until
this property becomes true
.
Initiates connection to the server.
This async function will satisfy its promise when connecting succeeds or break it when it fails.
See isConnected.
Initiates disconnection from the server.
Optional standard WebSocket close code explaining why the connection is being closed.
Initiates login to the server.
As the provided credentials are transmitted unencrypted, connection itself must be secure, i.e. use TLS.
After successfully logging in, call openDevice to start working with one of the devices from the list returned by the server.
The username to use for authentication.
The password to use for authentication.
List of available devices in case of successful login.
Sends a request with a set of arguments to the server and returns the reply received in response to the request.
RequestCode specifying the type of request to be sent.
Set of arguments that correspond to the request.
Reply received from the server in response to the request.
Asynchronously waits for any unsolicited server reply.
Unsolicited replies are sent by the server not in reply to a client request but due to an event on the server-side, e.g. new device connection.
Generated using TypeDoc
Initializes the object with the asynchronous websocket to use for communicating with the remote server.