🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

eternal-client

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eternal-client

- 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.

latest
npmnpm
Version
0.4.12
Version published
Weekly downloads
3
-88.46%
Maintainers
2
Weekly downloads
 
Created
Source

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实现

FAQs

Package last updated on 04 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts