{"id":17455523,"url":"https://github.com/open-wa/wa-automate-socket-client-nodejs","last_synced_at":"2025-10-09T16:52:39.305Z","repository":{"id":57133401,"uuid":"401539215","full_name":"open-wa/wa-automate-socket-client-nodejs","owner":"open-wa","description":"🔌 🛠 The wa-automate socket client allows you to easily connect to remote EASY API instances. Be sure to 🌟 this repository for updates!","archived":false,"fork":false,"pushed_at":"2023-05-20T13:31:38.000Z","size":148,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-14T02:36:21.860Z","etag":null,"topics":["nodejs","socket-io","whatsapp-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-wa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-31T01:46:12.000Z","updated_at":"2024-01-07T16:26:23.000Z","dependencies_parsed_at":"2023-02-09T21:15:59.261Z","dependency_job_id":null,"html_url":"https://github.com/open-wa/wa-automate-socket-client-nodejs","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"c3dc5c344f58dbd1966681a94cc08b914e2599bf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/open-wa/wa-automate-socket-client-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-wa","download_url":"https://codeload.github.com/open-wa/wa-automate-socket-client-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001778,"owners_count":26083173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","socket-io","whatsapp-api"],"created_at":"2024-10-18T02:04:32.793Z","updated_at":"2025-10-09T16:52:39.277Z","avatar_url":"https://github.com/open-wa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote Socket Client\n\n## How to:\n\n1. Run the EASY API\n\n```bash\n\u003e npx @open-wa/wa-automate --socket -p 8002 -k api_key\n```\n\nNote: `--socket` flag is required!!\n\n2. Typescript code:\n\n```javascript\nimport {\n    Client,\n    SocketClient,\n} from \"@open-wa/wa-automate-socket-client\";\n\nconst NUMBER = 'TEST_PHONE_NUMBER@c.us'\n\nconst start = async () =\u003e {\n    const client = await SocketClient.connect(\n        \"http://localhost:8002\",\n        \"api_key\"\n    ) as SocketClient \u0026 Client;\n\n    client.onAnyMessage((message) =\u003e {\n        console.log(\"onAnyMessage\", message.id, message.body);\n    });\n\n    const socketId = client.socket.id;\n    console.log(\"🚀 ~ file: client.ts ~ line 144 ~ start ~ socketId\", socketId);\n\n    console.log(\n        \"Connected!\",\n        await client.sendText(NUMBER, \"this is a text\")\n    );\n    client\n        .sendAudio(\n            NUMBER,\n            \"https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3\"\n        )\n        .then((audoMessageId) =\u003e console.log(audoMessageId));\n\n    console.log(\n        await client.sendFile(\n            NUMBER,\n            \"https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4\",\n            \"test.mp4\",\n            \"hellow\"\n        )\n    );\n};\n\nstart();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-nodejs/lists"}