Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed May 20, 2024
1 parent b3599ea commit f3b1a27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ice/examples/turn_turn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ const password = "";
password,
{},
);
const turn2 = await createTurnEndpoint(address, username, password, {});

await turn1.turn.getChannel(turn2.turn.relayedAddress);
const turn2 = await createTurnEndpoint(address, username, password, {});
await turn2.turn.getChannel(turn1.turn.relayedAddress);

await turn1.turn.getChannel(turn2.turn.relayedAddress);

turn1.turn.onData.subscribe((data, addr) => {
console.log("turn1 onData", data.toString(), addr);
turn1.sendData(Buffer.from("pong"), turn2.turn.mappedAddress);
Expand Down

0 comments on commit f3b1a27

Please sign in to comment.