Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
balazskreith committed Nov 18, 2024
1 parent 4439d17 commit 8cb1412
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions webapp/src/components/Charts/IceConnectionsGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@ export function IceConnectionsGraph(props: IceConnectionsGraphProps) {
width: 5,
curveness: 0.2,
type: 'dashed',
color: '#c0c0c0',
},
})),
...props.connections.map((c) => ({
source: c.userId ?? c.clientId,
target: 'STUNner',
symbolSize: [5, 20],
lineStyle: {
color: '#696969',
},
})),
...props.connections.map((c) => ({
source: 'STUNner',
target: c.mediaServerIp,
symbolSize: [5, 20],
lineStyle: {
color: '#696969',
},
})),
];
// console.warn('mediaServerNodes', mediaServerNodes, clientNodes);
Expand Down Expand Up @@ -87,6 +94,7 @@ export function IceConnectionsGraph(props: IceConnectionsGraphProps) {
// target: 'Node 1',
// lineStyle: {
// type: 'dashed',
// color: '#696969',
// }
// }
// ],
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/views/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Main: Component = () => {

onMount(() => {
setTimer(setInterval(async () => {
console.log(await clientStore.call?.getHamokState());
// console.log(await clientStore.call?.getHamokState());

if (!clientStore.call) return;
const response = await clientStore.call.getCallConnections();
Expand Down

0 comments on commit 8cb1412

Please sign in to comment.