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

同一userID使用不同platformID申请到不同的token, 用jssdk登录, 会出现概率无法监听到新消息的情况 #40

Open
PaoPaoYo opened this issue Mar 4, 2024 · 0 comments

Comments

@PaoPaoYo
Copy link

PaoPaoYo commented Mar 4, 2024

What happened?

使用同一个userID+2个不同的platformID, 获得到2个不同的token, 在2个浏览器窗口分别使用这些token登录, 并监听新消息(IMSDK.on(CbEvents.OnRecvNewMessages)), 会概率性出现 其中一个窗口监听不到新消息

What did you expect to happen?

两个窗口都能正常使用

How can we reproduce it (as minimally and precisely as possible)?

  1. 使用同一个userID+2个不同的platformID, 获得到2个不同的token(使用api中/auth/user_token)
  2. openim-server 配置多端登陆为10(multiLoginPolicy: 10)
  3. 在2个浏览器窗口分别使用这些token登录, 并监听新消息(IMSDK.on(CbEvents.OnRecvNewMessages))
  4. 发送消息给第一步的userID
    image

Anything else we need to know?

No response

version

截止当前的最新版本

Cloud provider

none

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant