Code Monkey home page Code Monkey logo

Comments (6)

wangxiao avatar wangxiao commented on July 29, 2024

未能复现。

from js-realtime-sdk.

pianfeng240 avatar pianfeng240 commented on July 29, 2024

real-time 版本 2.0.6
问题1: 聊天双方都超时,一方发送的消息,另一方收到两条,可以稳定重现
问题2: 本地超时重练,发送消息,成功,但本地realtimeobj 的 message事件收到自己发送的消息,可以稳定重现
qq20150806-1

from js-realtime-sdk.

leeyeh avatar leeyeh commented on July 29, 2024

@pianfeng240 请问你是不是在 realtimeObject.on('open', callback) 的 callback 中绑定的接收消息事件。

from js-realtime-sdk.

pianfeng240 avatar pianfeng240 commented on July 29, 2024

不是。
我解决这个问题了,createSocket的时候需要判断下将监听的事件先取消

from js-realtime-sdk.

leeyeh avatar leeyeh commented on July 29, 2024

解决就好,多问一句,那你是在什么时候绑定的「收到消息」的事件的呢?你说的「createSocket的时候」是指 reuse 事件吗?

from js-realtime-sdk.

pianfeng240 avatar pianfeng240 commented on July 29, 2024

对象初始化之后 绑定事件
_realTimeObj.on('message', function(data) { .. };
_realTimeObj.on('open', function() {...}

是的,reuse事件

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.