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

The PingMessage sent by electron demo sdk-core cannot be received by openim-server. #80

Open
Larry-Arun opened this issue Oct 22, 2024 · 2 comments

Comments

@Larry-Arun
Copy link

What would you like to share?

electron demo sdk-core 发送的PingMessage,openim-server没有日志,openim-server发送的PingMessage,electron的sdk-core 没有日志,两端发送的PingMessage 互相收不到,都是release-v3.8分支,这是怎么回事

Additional information

都是release-v3.8分支

@Bloomingg Bloomingg changed the title electron demo sdk-core 发送的PingMessage,openim-server收不到 The PingMessage sent by electron demo sdk-core cannot be received by openim-server. Oct 29, 2024
@Bloomingg
Copy link
Member

Are you using the wasm version sdk? The heartbeat ping pong in wasm is carried out through the default behavior of the browser and everything is normal.

@Larry-Arun
Copy link
Author

yeah,I used the wasm version sdk.I made a mistake before. Openim-server did not send ping to the client because of the line of code on the server side 'c.PlatformID == constant.WebPlatformID'. The server only sends ping when it is a Web. I changed the server code to 'c.PlatformID == constant.WebPlatformID || c.PlatformID == constant.WindowsPlatformID'. When it is an electron Windows client, the server also sends ping. This temporarily fixes the problem, but I think it is more appropriate for the client to send ping. Currently, when the client sends ping, the server does not print logs. The wasm used by the client is compiled from openim-sdk-core.

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

2 participants