From 2ee174bf77495822b49ed0da9ebb7421479f04f1 Mon Sep 17 00:00:00 2001 From: Daniel Schmitz <45914736+blouflashdb@users.noreply.github.com> Date: Sun, 12 Jan 2025 08:53:16 +0100 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 06f5381..affc658 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,18 @@ A fully typed Nimiq RPC client for Nodejs and Deno. ### Installation deno: - -`deno add jsr:@blouflash/nimiq-rpc` - +``` +deno add jsr:@blouflash/nimiq-rpc +``` npm: - -`npx jsr add @blouflash/nimiq-rpc` +``` +npx jsr add @blouflash/nimiq-rpc +``` pnpm: - -`pnpm dlx jsr add @blouflash/nimiq-rpc` +``` +pnpm dlx jsr add @blouflash/nimiq-rpc +``` ### Usage @@ -77,7 +79,7 @@ subscribtion.close(); ### Auth Auth is not supported however you can use a proxy like nginx and pass the auth token via query url. I recommend to use tls. -``` +```typescript const client = new NimiqRPCClient("http://localhost/?token=mysecrettoken", "ws://localhost/ws?token=mysecrettoken"); ```