-
Notifications
You must be signed in to change notification settings - Fork 431
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
Winform的ClientWebSocket始终联不上 #29
Comments
token 是从服务端接口获取的吗 |
是的 |
127.0.0.1 6001 是什么服务 |
string urls = "http://localhost:47205/ws/pre-connect"; |
6001是通过weiapi获取到的 |
imserver 启动是用 127.0.0.1:6001 吗 |
启动的时候显示:127.0.0.1:5000 |
我也很不解,在imserver里配置的 6001 ,怎么启动的时候就变5000了 |
imserver 启动参数
webapi, imserver 配置值 server 值都是 127.0.0.1:6001 webapi, imserver 的 redis 配置一样 imserver 的配置 servers 也配置成 127.0.0.1:6001 |
好的,谢谢大佬 ,我再重新弄下。 |
查了资料如果不指定端口,这里默认显示5000,原来是MS搞的 |
winform 还是连不上 |
是什么提示? |
connecting 然后超时 |
那就是连不上 imserver |
ClientWebSocket client = new ClientWebSocket();
client.ConnectAsync(new Uri("ws://127.0.0.1:6001/ws?token=f5e2fdf65e5c4a1f9fc677c8a3e6b99ccd35347169084455a33d01af3fc350ba728e58799bc6434e8c3b9e82b206eddaa4a88d85150b4315856a5e6ecfd3543a"), CancellationToken.None).Wait() ;
联不上。不知道什么原因,求大佬 指点
The text was updated successfully, but these errors were encountered: