{"id":21198228,"url":"https://github.com/xiaoping6688/easemob-webim-socket","last_synced_at":"2025-03-14T22:12:48.977Z","repository":{"id":143985107,"uuid":"79441930","full_name":"xiaoping6688/easemob-webim-socket","owner":"xiaoping6688","description":"环信WEBIM实时通信封装 + 客户端模拟器（electron）","archived":false,"fork":false,"pushed_at":"2017-06-09T02:58:45.000Z","size":137,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T14:45:30.307Z","etag":null,"topics":["easemob","easemob-js","easemob-sdk","easemob-socket","huanxin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/xiaoping6688.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-19T10:24:06.000Z","updated_at":"2020-08-14T11:16:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"086a199c-1b12-43c3-9ad6-28b4f3ed5a56","html_url":"https://github.com/xiaoping6688/easemob-webim-socket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoping6688%2Feasemob-webim-socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoping6688%2Feasemob-webim-socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoping6688%2Feasemob-webim-socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoping6688%2Feasemob-webim-socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoping6688","download_url":"https://codeload.github.com/xiaoping6688/easemob-webim-socket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652707,"owners_count":20325611,"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":["easemob","easemob-js","easemob-sdk","easemob-socket","huanxin"],"created_at":"2024-11-20T19:49:22.211Z","updated_at":"2025-03-14T22:12:48.971Z","avatar_url":"https://github.com/xiaoping6688.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easemob-webim-socket\n环信WEBIM即时通信封装（socket.js 非IM） + 客户端模拟器（electron）\n\n## Install\n\n```\n$ npm install\n$ cd app \u0026 npm install\n```\n\n## Start\n\n```\n$ cd ..\n$ npm start\n```\n\n## Usage\n\n```js\nfunction initSocket () {\n  let username = $('#name').val().trim()\n  let password = $('#pass').val().trim()\n  let roomId = $('#room').val().trim()\n\n  socket.connect(username, password, function(){\n    // 环信连接\u0026登录成功\n  }, onReceived, onError)\n}\n\nfunction onReceived (tag, value) {\n  // tag 命令 value 数据\n}\n\n//=\u003e @see app/js/index.js // 参考socket使用方法\n//=\u003e @see app/js/socket.js // 对环信WEB-IM sdk封装，包括队列和日志功能等\n```\n\n![image](https://raw.githubusercontent.com/xiaoping6688/easemob-webim-socket/master/screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoping6688%2Feasemob-webim-socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoping6688%2Feasemob-webim-socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoping6688%2Feasemob-webim-socket/lists"}