我可以向所有WebSocket客户端广播 [英] Can I broadcast to all WebSocket clients
本文介绍了我可以向所有WebSocket客户端广播的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I'm assuming this isn't possible, but wanted to ask in case it is. If I want to provide a status information web page, I want to use WebSockets to push the data from the server to the browser. But my concerns are the effect a large number of browsers will have on the server. Can I broadcast to all clients rather than send discrete messages to each client?
解决方案
WebSockets uses TCP, which is point to point, and provides no broadcast support.
这篇关于我可以向所有WebSocket客户端广播的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文