Features
- Support web socket interaction for superid-web projects.
- Reliable system message support with ack.
- Responsible for managing chat room message caches for superid-web.
- Support service callback of server side notification.
Install
npm install eternal-client
yarn add eternal-client
Usage
import Client from 'eternal-client';
Client.start(ip, userId, token, deviceId, handlersMap);
window.SocketClient = Client;
Update
npm install -g father-build
father build
TypeScript
More files are changed to typescript.
Test
$ cd eternal-client
$ npm install
$ npm run test
Changelog
version 0.4.0
- eternal-client打包采用father-build(umi-library),删除项目冗余文件(node_modules/dist)
- eternal-client支持typescript,原有代码类型未扩充,只做支持暂无全量升级
- 调整eternal-client代码目录结构,npm包发布内容(目前仅发布father-build后的dist文件,源文件不再打包至npm)
- eternal-client所有文件(除protobuf)采用es module替换commonjs
- eternal-client升级已有testcase,基于father test测试完成
version 0.4.1
- 解决eternal-client requestService的commonjs模块报错问题
- 补充demo testcase,删除全部旧版本无效测试用例
version 0.4.2
- 修复会话key生成的longtoStr函数实现的bug
- 拆分client-core代码,提取handler和binder处理
version 0.4.3
- constants上提到业务代码项目,除eternal-client依赖外不再新增类型
- 删除已废弃的接口逻辑
what's next
- service整合,不需要冗余这么多(单聊群聊的冗余,以及其他service的非必要接口
- 测试用例补齐
- event替代event.ts的handler实现