eternal-client
TypeScript icon, indicating that this package has built-in type declarations

0.4.12 • Public • Published

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

  1. eternal-client打包采用father-build(umi-library),删除项目冗余文件(node_modules/dist)
  2. eternal-client支持typescript,原有代码类型未扩充,只做支持暂无全量升级
  3. 调整eternal-client代码目录结构,npm包发布内容(目前仅发布father-build后的dist文件,源文件不再打包至npm)
  4. eternal-client所有文件(除protobuf)采用es module替换commonjs
  5. eternal-client升级已有testcase,基于father test测试完成

version 0.4.1

  1. 解决eternal-client requestService的commonjs模块报错问题
  2. 补充demo testcase,删除全部旧版本无效测试用例

version 0.4.2

  1. 修复会话key生成的longtoStr函数实现的bug
  2. 拆分client-core代码,提取handler和binder处理

version 0.4.3

  1. constants上提到业务代码项目,除eternal-client依赖外不再新增类型
  2. 删除已废弃的接口逻辑

what's next

  1. service整合,不需要冗余这么多(单聊群聊的冗余,以及其他service的非必要接口
  2. 测试用例补齐
  3. event替代event.ts的handler实现

Dependents (1)

Package Sidebar

Install

npm i eternal-client

Weekly Downloads

47

Version

0.4.12

License

MIT

Unpacked Size

83.1 kB

Total Files

11

Last publish

Collaborators

  • ypc1208
  • liujiajun