Webpack 5 and Typescript - Webex sample

This project is a sample that shows how to use the Webex SDK with a Webpack 5 project with Typescript.

published

How to get started

Create Webex Application

Change Client ID

  • Replace 'YOUR_CLIENT_ID' with the copied Client ID into the src/index.ts file

Install dependencides

  • install the dependencies with npm install or yarn

Run

  • type npm run start or yarn start
  • open a browser https://localhost:8080

You may have to ignore the certificate warning

  • After 10 seconds you will be redirected to the Webex login page

The first time you have to accept the access to your created application

  • Login with your Teams user
  • You will be redirected back to https://localhost:8080
  • Open the Developer Tools of the browser (F12 or Ctrl+Shift+J (on Windows) or Ctrl+Option+J (on Mac))
  • Check the console

The message "listening to message events" will appear

  • Send / receive a message over Webex Teams with the logged in user
  • The message will appear in the console

Do more

Now you are able to go ahead and adjust the code in the index.ts to do whatever you want to do.

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.