@ledgerhq/speculos-web
v2.0.0
Published
A VNC/Websocket UI bridge to distant running Speculos devices
Downloads
490
Maintainers
Keywords
Readme
speculos-web
A VNC/Websocket UI bridge to distant running Speculos devices
Usage
Register your transport:
import { registerTransportModule } from "@ledgerhq/live-common/lib/hw";
import { createSpeculosWebTransport } from "@ledgerhq/speculos-web";
registerTransportModule({
id: "speculos-web",
open: (id: string) => {
if (id !== "speculos-web") return;
return createSpeculosWebTransport();
},
disconnect: () => null,
});
Use the <SpeculosWeb />
component:
import { SpeculosWeb } from "@ledgerhq/speculos-web";
function MyApp() {
return (
<div>
<SpeculosWeb
baseDomain="speculos-server.com"
blueAppVersion="5.2.1-dev-8.3.1-3d9ada4f"
staxAppVersion="1.0.1"
/>
</div>
);
}