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

关于部署后imserver后有加入提醒,没有消息 #24

Open
taohaiyu opened this issue Aug 22, 2020 · 6 comments
Open

关于部署后imserver后有加入提醒,没有消息 #24

taohaiyu opened this issue Aug 22, 2020 · 6 comments

Comments

@taohaiyu
Copy link

配置imserver,我用的是域名,一个二级域名,比如:我发布imserver,配置的域名是server.xxx.com:6001,web的域名是im.xxx.com,然后就没有消息响应是怎么回事呢?

@2881099
Copy link
Owner

2881099 commented Aug 22, 2020

wss https?具体有什么反应,没收到消息也可能是 servers 配置不正确,比如和 dotnet xxx.dll —urls=server配置的值

@taohaiyu
Copy link
Author

"ImServerOption": {
"CSRedisClient": "dev.xxx.cn,allowAdmin=true,password=xxxcom,idleTimeout=3000,poolsize=10,defaultdatabase=3",
"Servers": "imserver.xxx.cn:6001",
"Server": "imserver.xxx.cn:6001"
}

ImHelper.Initialization(new ImClientOptions
        {
            Redis = new CSRedis.CSRedisClient("dev.xxx.cn,allowAdmin=true,password=xxxxx,idleTimeout=3000,poolsize=10,defaultdatabase=3"),
            Servers = new[] { "imserver.xxx.cn:6001" }
        });

这配置可以?

@taohaiyu
Copy link
Author

这是线上的,一直没消息响应

@2881099
Copy link
Owner

2881099 commented Aug 22, 2020

redis 配置都一样吗

idleTimeout=3000 太小,这个是毫秒单位

—urls 呢,怎么配置的,跟 servers 一样?

@2881099
Copy link
Owner

2881099 commented Aug 22, 2020

跟开发环境对照好好梳理一下

@2881099
Copy link
Owner

2881099 commented Aug 22, 2020

浏览器有跨域问题,二级域名没问题

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