examples/quickstart/1-browser-to-browser
directory to install the dependencies:npm start
:http://localhost:3000
. The browser tab, representing the client peer, wants you to pick a relay node it, i.e., the browser client, can connect to and, of course, allows the peer to respond to the browser client. Select any one of the offered relays:http://localhost:3000
, select any one of the relays and copying the ensuing peer id and relay peer id to the first client peer, i.e. the first browser tab, and click the say hello
button:\aqua
directory and open the `getting-started.aqua
file in your IDE or terminal:HelloPeer
service to send messages.HelloPeer
namespace and hello
function (4-5)sayHello
that executes the hello
call on the provided targetPeerId
via the provided targetRelayPeerId
and returns the result (7-10). Recall the copy and paste job you did earlier in the browser tab for the peer and relay id? Well, you just found the consumption place for these two parameters.src/_aqua
directory and open the getting-started.ts
file and poke around a bit.src/App.tsx
file relies on the generated `getting-started.ts` file (line 7):HelloPeer
is also implemented in the App.tsx
file: