Code Monkey home page Code Monkey logo

Comments (13)

wangxiao avatar wangxiao commented on July 29, 2024

我改一个写一个,改好了再一起看,我会叫你的。

from js-realtime-sdk.

wangxiao avatar wangxiao commented on July 29, 2024

创建 conv 是 id 是空字符串而非 null 的考虑是?

因为 js 是弱类型,所以提前设置为空字符串,相当于人为声明下,这个变量是字符串,因为逻辑上一定会设置一个字符串 id 的。

from js-realtime-sdk.

wangxiao avatar wangxiao commented on July 29, 2024

log 里的 setTimeout 可以去掉

因为立刻取会没有,要不服务端看看有木有好的解决办法。。。

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024

log这个正常是不存在发完立刻取的场景的,这个我觉得说明一下就可以了。目前我们应该可以保证1秒以内的延迟。

from js-realtime-sdk.

wangxiao avatar wangxiao commented on July 29, 2024

#20

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024

考虑 room 这个名字最好和整个平台统一成 conversation 或者相关缩写

from js-realtime-sdk.

wangxiao avatar wangxiao commented on July 29, 2024

这个名字我也纠结很久,感觉 room 比较短也好理解,conv 缩写实在是比较难理解。

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024

和平台的整体名称对应,包括概念文档、数据库的 _Conversation 表等等,如果单独叫做 room 会增加额外的沟通和理解的成本

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024

内部接口 EventCenter 的注册事件方法叫做 on,解除可以叫做 off (现在是 remove)

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024
  • conv/count 接口
  • send 如果是 transient 消息不需要等待 ack 和设置回调
  • 收到非 transient 的 direct 消息需要回复 ack
  • 回执 rcp 支持

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024
  • 似乎 event center 里的 eventList 和 eventOnceList 实现是完全一致的
  • open session 的 i 参数
  • 是否支持 flash socket
  • wsClose 可以收集一下 websocket 的 status 和reason
  • 心跳包发送了但是似乎没有检查心跳包返回的情况,一定时间没有返回心跳包应该触发连接断线的事件(session pause)
  • engine.auth 缺少必要参数

from js-realtime-sdk.

sunng87 avatar sunng87 commented on July 29, 2024
  • engine.convUpate typo
  • transient conversation

from js-realtime-sdk.

wangxiao avatar wangxiao commented on July 29, 2024

#23

from js-realtime-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.