Configure the Client and Run the App
This section describes the steps to run the sample app included with the SDK.
Note: Alternatively, you can build your own client app on the Electron framework, as described in the Electron Quick Start Guide.
Steps to Run the App from the Client Machine¶
- Ensure that you have NodeJS installed in your environment. It’s recommended that you install the latest stable version of NodeJS.
- In
./client/serverInfo.json
, configure the index page URL forpageUrl
. For example:In the example,"pageUrl": "https://192.168.1.101/sample/index.html"
192.168.1.101
is the Web server address, andsample
is the web application folder on the Web server where you copied theindex.html
file and thesdk
,common
, andapp
folders. Replace these example values with your own information. - In
./client/serverInfo.json
, configure the value ofcallServerUrl
. For example:In the example,"callServerUrl": "wss://192.168.1.200:8443"
192.168.1.200
is the Web Socket server address, and8443
is the port number configured in./server/wsServer.js
. Replace these example values with your own information. - To start the app, change to the
./client
directory and runnpm start
.