Compare commits

...
2 Commits
Author SHA1 Message Date
khairul169 699bfa8de5 feat: update ws url 2026-09-14 17:31:46 +08:00
khairul169 fb0b2208d6 update test client 2026-09-14 17:31:31 +08:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { WhatsAppClient } from "./whatsapp"; import { WhatsAppClient } from "./whatsapp";
const wa = new WhatsAppClient("ws://127.0.0.1:8787"); const wa = new WhatsAppClient("wss://wa-bridge.rul.sh/ws");
await wa.connect(); await wa.connect();
const chats = await wa.listChats({ const chats = await wa.listChats({
@@ -37,6 +37,6 @@ console.log(
// }); // });
// await wa.sendText({ // await wa.sendText({
// chatId: "628123456789@c.us", // chatId: "6289521024344@c.us",
// text: "Hello from Node!", // text: "Hello from Node!",
// }); // });
+1 -1
View File
@@ -7,7 +7,7 @@ import {
serializeMessage, serializeMessage,
} from "./serializer"; } from "./serializer";
const WS_URL = "ws://127.0.0.1:8787"; const WS_URL = "wss://wa-bridge.rul.sh/ws";
let socket: WebSocket | undefined; let socket: WebSocket | undefined;