Working DM list

This commit is contained in:
2025-10-15 10:15:32 +02:00
parent bbc2777ad4
commit ab4cf4245f
4 changed files with 59 additions and 9 deletions
+3 -2
View File
@@ -15,8 +15,9 @@ export default async function auth(
.address as string;
console.log("Authenticating with server at:", ip);
const server_auth = ((await axios.post("/api/auth", { server_id: id })).data as any)
.token;
const server_auth = (
(await axios.post("/api/auth", { server_id: id })).data as any
).token;
// Open the WebSocket connection
const ws = new WebSocket(`wss://${ip}`);