yoursunny / NDNts

NDN libraries for the Modern Web
https://ndnts-docs.ndn.today
ISC License
31 stars 9 forks source link

Connect to local router over wss #15

Closed radara09 closed 1 year ago

radara09 commented 1 year ago

I tried to recreate the website from your website (https://yoursunny.com/t/2020/NDNts-webpack-start/) and successfully connected to the NDN Testbed. But, we want to connect the website to our local testbed, is there any source or recommendation to do this? Thank you

yoursunny commented 1 year ago

You can use @ndn/ws-transport package to directly connect to a specific router:

import { WsTransport } from "@ndn/ws-transport";

await WsTransport.createFace({}, "wss://router.example.org/");
radara09 commented 1 year ago

thank you now it's connected