This is a repository for the vcs-realtime-sdk code samples.
To run these examples you need to clone this repo, then edit the VCS_DOMAIN
and ROOM_TOKEN
in the config.js
file, and finally serve the root folder of the repo.
git clone https://github.com/atos-virtual-care/vcs-realtime-sdk-web-samples
cd vcs-realtime-sdk-web-samples
-
Obtain an API key and VCS domain from your system administrator.
-
Create a room token using the REST API.
$ curl -X POST https://<vcs-domain>/api/realtime/room \ -H "x-vcs-token: <api-key>" \ -H "Content-Type: application/json"
-
Edit the
config.js
file to contain the VCS domain provided to you, and the room token created in the step above.
Use your favorite tool to serve the root folder of the repo. E.g. ws.
npm install -g local-web-server
npx ws --https --open
For more information on the VCS SDK family, see the VCS Realtime SDK documentation