Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Latest commit

 

History

History

browser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Browser example

Demonstrates the SDK's usage in the browser.

Usage

First you need to run a relay:

npm i -g @synonymdev/slashtags-cli

slash daemon start

Then start serving the simple html:

npm start

Finally check console, you should see:

Alice slashtag URL: slash:<Alice's public key>
Announcing Alice's public drive...
Bob slashtag url: slash:<Bob's public key>
Resolving Alice's public drive...
Alice's profile as seen by Bob: { name: "Alice" }