Enter the name prefix of ndnpingserver and click ping button.
You should see responses.
Test instructions for "wss" scheme are similar to above, but:
You need a publicly accessible server and a trusted TLS certificate.
In yanfd.toml, set faces.websocket.tls_enabled=true, and enter the path to TLS certificate (it should be the "fullchain" file from acme.sh or similar) and TLS key.
Enter a "wss" URI in place of ws://localhost:9696.
This change implements a WebSocket listener in YaNFD. It supports both unencrypted "ws" scheme and TLS-encrypted "wss" scheme.
This change has been tested with NDNts
@ndn/ws-transport
package.Test instructions for "ws" scheme:
yanfd.toml
, setfaces.websocket.enabled=true
.ndnpingserver
and connect it to YaNFD.npm install
src/main.js
:await connectToNetwork();
to:npm run serve
and open http://localhost:3333ndnpingserver
and click ping button. You should see responses.Test instructions for "wss" scheme are similar to above, but:
yanfd.toml
, setfaces.websocket.tls_enabled=true
, and enter the path to TLS certificate (it should be the "fullchain" file from acme.sh or similar) and TLS key.ws://localhost:9696
.