Skip to content

BossGrand/layer-js-sampleapps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample apps using Layer Web SDK

This repository contains sample chat applications that use version 1.0 of the Layer Web SDK to demonstrate how one would use the SDK to build a simple chat application using one of these three popular frameworks:

Each sample app implementation is framework specific and not necessarily a demonstration of best practice.

Screenshot

The Web SDK

The Web SDK in all samples is loaded via script tag directly from our CDN. For more information on how the Web SDK works, see Web SDK Docs.

Authentication and identity

For demonstration purposes Layer provides a sample authentication endpoint which works for Layer Staging Applications only and a hard-coded list of users. It exposes a global window.layerSample utility and injects an initial HTML login dialog.

Layer Staging Application IDs can be found in your Developer Dashboard.

In real application this should be replaced with your own authentication mechanism and manage your own user identities.

About

Various sample apps using Layer Web SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.3%
  • CSS 15.5%
  • HTML 10.2%