Logo
Explore Help
Register Sign In
explewd/waste-go
1
0
Fork 0
You've already forked waste-go
Code Issues Pull Requests Actions Packages Projects Releases 5 Wiki Activity
Files
739c63f6b3bb3cffc1b8e92f7cdf9b49e37a41cb
waste-go/web/config.example.js

8 lines
292 B
JavaScript
Raw Normal View History

Add standalone browser mode: no daemon required BrowserAdapter speaks yaw/2.1 signaling + WebRTC protocol entirely in the browser (libsodium-wrappers for Ed25519/X25519). Identity stored in localStorage; peers connect via any waste/yaw2 anchor. When served from a non-localhost origin the app defaults to browser mode. On localhost the daemon adapter is tried first with a one-click switch to browser mode. config.js (gitignored, served by anchor) lets the host pre-inject signalURL and other defaults. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 00:06:41 +02:00
// Copy to config.js (gitignored) on the anchor host.
// Served at /config.js; loaded before the React bundle in index.html.
window.WASTE_CONFIG = {
signalURL: 'wss://waste.dev.xplwd.com/ws',
// Uncomment to pre-fill the network name on this invite URL:
// defaultNetwork: 'friends',
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 20ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API