{"id":20800724,"url":"https://github.com/jeankassio/async-client-websocket","last_synced_at":"2026-04-25T01:33:54.953Z","repository":{"id":169009170,"uuid":"644865794","full_name":"jeankassio/Async-Client-Websocket","owner":"jeankassio","description":"Async Client Websocket is an asynchronous Websocket Client built with the aim of making your connection lighter and more functional.","archived":false,"fork":false,"pushed_at":"2025-07-14T08:23:05.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T17:52:00.434Z","etag":null,"topics":["async","async-websocket-client","async-websockets","websocket","websocket-client","websockets","websockets-client"],"latest_commit_sha":null,"homepage":"https://jeankassio.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeankassio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-24T12:21:47.000Z","updated_at":"2025-07-14T08:23:09.000Z","dependencies_parsed_at":"2025-07-14T10:12:09.042Z","dependency_job_id":null,"html_url":"https://github.com/jeankassio/Async-Client-Websocket","commit_stats":null,"previous_names":["jeankassio/async-client-websocket"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jeankassio/Async-Client-Websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FAsync-Client-Websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FAsync-Client-Websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FAsync-Client-Websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FAsync-Client-Websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeankassio","download_url":"https://codeload.github.com/jeankassio/Async-Client-Websocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FAsync-Client-Websocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32247217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["async","async-websocket-client","async-websockets","websocket","websocket-client","websockets","websockets-client"],"created_at":"2024-11-17T18:15:03.639Z","updated_at":"2026-04-25T01:33:54.903Z","avatar_url":"https://github.com/jeankassio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Async Client Websocket\nAsync Client Websocket is an asynchronous Websocket Client built with the aim of making your connection lighter and more functional.\n\n## Access file\n\nImport the AsyncClientWebSocket.js file to your server, or use the CDN:\n\nhttps://cdn.jsdelivr.net/gh/jeankassio/Async-Client-Websocket@main/src/AsyncClientWebSocket.min.js\n\n## How to use\n\n```javascript\nconst Server = new WebSocketClient('wss://your_wss.com');\n\n//Methods:\nServer.connect(timeout = 5000);\nServer.send(message);\nServer.disconnect();\nServer.destroy();\nServer.isConnected();\nServer.saveQueueOnLocalStorage(status);\nServer.startKeepAlive(interval = 15000, ping); //\"ping\" is the word that your server will receive as a ping if you use a word other than \"ping\"\nServer.stopKeepAlive();\nServer.trackLatency(interval = 10000, ping, pong); //\"ping\" and \"pong\" is the word that your server will receive as a ping if you use a word other than \"ping\"/\"pong\"\nServer.untrackLatency();\nServer.getLatency();\nServer.autoReconnect(interval = 3000, maxAttemps = infinity, callback = null);\nServer.preventSpam(interval = 100); //\"interval\" is the minimum time allowed between one message and another message\nServer.allowSpam();\nServer.log(status = true);\nServer.setOutgoingMiddleware(fn);\nServer.setIncomingMiddleware(fn);\n\n\n//Events\nServer.onOpen = (event) =\u003e {\n\t\t\n};\n\nServer.onClose = (event) =\u003e {\n  \t\t\n};\n\nServer.onMessage = (message) =\u003e {\n\t\t\n};\n\nServer.onError = (error) =\u003e {\n\t\t\n};\n\n\nServer.onSpam = (message) =\u003e {\n\t\n};\n\nServer.onVerbose = (verboseMessage) =\u003e {\n\n};\n\nServer.onLatency = (latency) =\u003e {\n\n};\n\n\nfunction wsSend(message) {\n  Server.send(message);\n}\n\nfunction wsClose() {\n  Server.disconnect();\n}\n\t\nasync function wsConnect(){\n\t \n  await Server.connect();\n\t\t\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeankassio%2Fasync-client-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeankassio%2Fasync-client-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeankassio%2Fasync-client-websocket/lists"}