Proton Link - Browser Transport
A transport library for usage of Proton Link within a web browser environment.
Basic usage
A transport is required for Proton Link to communicate with clients. In most examples we use the browser transport with no configuration, like so:
const transport = new ProtonBrowserTransport()
const link = new ProtonLink({transport})
Parameters can be passed to the transport during construction as an object, allowing for the following optional changes:
const transport = new ProtonBrowserTransport({
classPrefix: 'my-css-prefix',
injectStyles: true,
requestStatus: false,
storagePrefix: 'my-localstorage-prefix',
disableGreymassFuel: false,
fuelReferrer: 'teamgreymass',
})
const link = new ProtonLink({transport})
Developing
You need Make, node.js and yarn installed.
Clone the repository and run make
to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint
.
License
MIT
Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.