SocketServer icon indicating copy to clipboard operation
SocketServer copied to clipboard

这个demo只能一对一连接吗

Open JohnWilley opened this issue 8 years ago • 1 comments

如果我2个设备同时连接同一个服务器 那么最先连的会断掉 请问这个是bug吗

JohnWilley avatar Nov 20 '17 03:11 JohnWilley

当然不是,因为demo里只保存了一个客户端的对象,只保存了后面连接的客户端对象,你自己可以把两个设备都保存下来

edwardGG avatar Nov 20 '17 05:11 edwardGG