Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMessageHandler 接收到的消息总是包含全量的历史消息 #14

Open
caosbad opened this issue Nov 9, 2019 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@caosbad
Copy link

caosbad commented Nov 9, 2019

按照例子使用 socket 接入 Mixin 消息,消息处理成功,但却无法发送 'ACKNOWLEDGE_MESSAGE_RECEIPT' 回执消息~ 导致 socket 一直拉取到全量的历史消息。

socket 文件中的 promise 回调一直没有执行 line : 137

          return new Promise((resolve, reject) => {
            this.sendRaw({
              id: this.getUUID(),
              action: 'ACKNOWLEDGE_MESSAGE_RECEIPT',
              params: {
                message_id: message.data.message_id,
                status: 'READ',
              },
            })
              .then(() => resolve(result))
              .catch(reject);
          });

一直没能 debuger 出原因为什么 promised(message).then() 后面的函数没能执行

@wangshijun wangshijun self-assigned this Nov 17, 2019
@wangshijun wangshijun added the bug Something isn't working label Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants