Skip to content

A simple WebSocket server to proxy lnsocket frames to Core Lightning nodes over the Lightning Network

Notifications You must be signed in to change notification settings

clams-tech/ln-ws-proxy

Repository files navigation

lnsocket-proxy

A simple WebSocket proxy for use with lnsocket in a browser app that is running on https.

The code is inspired by and functions mostly the same as ln-ws-proxy, but with some additional validation, rate limiting and built with uWebSockets.js for performance.

Installing Dependencies

yarn

Updating Env Vars

The following env vars will be picked up by the WebSocket server and can be set in your env to modify the defaults:

HOST=localhost
PORT=3000

You can also add a RESTRICT_ORIGINS var if you would like the server to only accept connections from specified origins:

RESTRICT_ORIGINS=https://yourapp.com,https://staging.yourapp.com

Starting the server

yarn start

About

A simple WebSocket server to proxy lnsocket frames to Core Lightning nodes over the Lightning Network

Resources

Stars

Watchers

Forks

Packages

No packages published