MercuryWorkshop / CurlTransport

a bare transport that implements end-to-end encryption with libcurl.js and wisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A bare-module for implementing end to end encryption with libcurl.js

How to use

In an ultraviolet app with bare-mux installed, you'll see a line like

BareMux.SetTransport("EpxMod.EpoxyClient", { wisp: "ws://localhost:8080/wisp" });

Simply replace it with

BareMux.SetTransport("CurlMod.LibcurlClient", { wisp: "ws://localhost:8080/wisp" });

to use the libcurl.js backend instead

You must import dist/index.js in your service worker, before UV is initialized.

About

a bare transport that implements end-to-end encryption with libcurl.js and wisp


Languages

Language:JavaScript 55.7%Language:TypeScript 44.3%