Skip to content

Sample app that demonstrates using the Browser SDK to manage rooms, send messages, and listen for new messages.

License

Notifications You must be signed in to change notification settings

WebexSamples/browser-sdk-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser SDK Messaging Sample app

This sample shows how to use the Webex Browser SDK to do the following:

  • List rooms (spaces) you belong to
  • Create and delete rooms
  • Send a message to a room
  • Add members to a room
  • Listen for newly created or deleted messages in a room

This app accompanies a tutorial on the Webex Developer Portal that you can follow along with with starter files, or run the completed project.

To use the completed app you need to obtain use your personal access token from the Developer Portal that the SDK will use to make API calls.

In a production environment you will want to create a Webex Integration (OAuth client) that will obtain an API access token for the authenticating Webex user.

Add your personal access token to index.js:

const webex = (window.webex = window.Webex.init({
    credentials: {
        access_token: "<YOUR-PERSONAL-ACCESS_TOKEN>"
    }
}));

Save your changes and load index.html in a browser and you should see a "Authentication successful" message.

About

Sample app that demonstrates using the Browser SDK to manage rooms, send messages, and listen for new messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •