服务器如何主动通知客户端 #1885
ericzhanchina
started this conversation in
General
服务器如何主动通知客户端
#1885
Replies: 3 comments 2 replies
-
客户端发请求,如果数据没有变化,服务器暂存请求,等待数据变化之后,再回应。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
直接用socket.write对fd写就行了;rpc也是基于socket.write的 |
Beta Was this translation helpful? Give feedback.
1 reply
-
@cloudwu 云风大佬可以给指导一下吗,谢谢 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
现在用的skynet提供的请求和响应的模型,做功能很清晰,比较舒服。想请教一下,对于这个socket链接,我如何能服务器主动的通知客户端数据的变化呢,现在基本都是客户端发送请求过来,我修改之后,再返回给客户端。
Beta Was this translation helpful? Give feedback.
All reactions