@ambassadorai/waitlist-webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either `token` or `signedRequest` depending on the environment.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ambassadorai/waitlist-webview
1.0.34 years ago4 years agoMinified + gzip package size for @ambassadorai/waitlist-webview in KB

Readme

Waitlist webview
A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either token or signedRequest depending on the environment.
Props:
  • apiUrl: the URL of the webview-facing waitlist API.
  • ioUrl: the URL of the contact-facing waitlist WebSocket server.
  • token: a JWT token from the chat app.
  • signedRequest: a signed request from a Messenger webview.

For dev/demo purposes, can be run in a standalone environment with npm run watch. Just set API_URL and IO_URL as environment variables, and supply a pre-generated token in CHAT_TOKEN. You can copy the token from any API request from the chat app. Environment variables can be set in an .env file.