{"id":25778794,"url":"https://github.com/rxnew/socket8-js","last_synced_at":"2025-07-02T09:04:14.064Z","repository":{"id":79976763,"uuid":"174014563","full_name":"rxnew/socket8-js","owner":"rxnew","description":" It is a wrapper for using WebSocket client of JavaScript more conveniently.","archived":false,"fork":false,"pushed_at":"2019-03-05T21:10:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T15:44:40.378Z","etag":null,"topics":["javascript","websocket"],"latest_commit_sha":null,"homepage":null,"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/rxnew.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}},"created_at":"2019-03-05T20:17:46.000Z","updated_at":"2019-03-05T21:08:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"61da0bfa-d7ed-432e-a9f5-311bfc9c2d77","html_url":"https://github.com/rxnew/socket8-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rxnew/socket8-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxnew%2Fsocket8-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxnew%2Fsocket8-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxnew%2Fsocket8-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxnew%2Fsocket8-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxnew","download_url":"https://codeload.github.com/rxnew/socket8-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxnew%2Fsocket8-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263108803,"owners_count":23415004,"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","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":["javascript","websocket"],"created_at":"2025-02-27T06:38:08.304Z","updated_at":"2025-07-02T09:04:14.047Z","avatar_url":"https://github.com/rxnew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socket8-js\nIt is a wrapper for using WebSocket client of JavaScript more conveniently.\n\nsocket8-js has the following functions.\n- When the connection is disconnected, it will automatically reconnect\n- When sending before connection or after disconnection, data is queued and waits for connection completion\n\n## How to use\n```javascript\nsock = new Socket8('ws://localhost:8081', ['echo-protocol']);\nsock.onopen(() =\u003e console.info('Connected.'));\nsock.onclose(() =\u003e console.info('Closed.'));\nsock.onerror(() =\u003e console.info('Error.'));\nsock.onmessage(e =\u003e console.info(e.data);\nsock.send('hello');\n```\n\n## How to run sample\n```sh\n$ npm install --save-dev\n$ npm start\n```\nOpen http://localhost:8080 in your web browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxnew%2Fsocket8-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxnew%2Fsocket8-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxnew%2Fsocket8-js/lists"}