Skip to content

ATOS-VIRTUAL-CARE/vcs-realtime-sdk-web-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCS Realtime SDK JavaScript code samples

This is a repository for the vcs-realtime-sdk code samples.

Run samples locally

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.

Clone repo

git clone https://github.com/atos-virtual-care/vcs-realtime-sdk-web-samples
cd vcs-realtime-sdk-web-samples

Create room token

  1. Obtain an API key and VCS domain from your system administrator.

  2. 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"
  3. Edit the config.js file to contain the VCS domain provided to you, and the room token created in the step above.

Serve the repo

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

More information

For more information on the VCS SDK family, see the VCS Realtime SDK documentation

About

Simple web quickstart examples for the VCS Realtime JS SDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6