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.
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.