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

Websocket如何實踐廣播跟多播? #21

Closed
thaiwu0107 opened this issue Nov 11, 2019 · 1 comment
Closed

Websocket如何實踐廣播跟多播? #21

thaiwu0107 opened this issue Nov 11, 2019 · 1 comment

Comments

@thaiwu0107
Copy link

thaiwu0107 commented Nov 11, 2019

Websocket 要怎麼廣播跟多播給客戶端呢?
要自己存一個 map 來使用嗎?

或是底層已經有一個 map 可以開放出來避免重複儲存?

@Allenxuxu
Copy link
Owner

建议是自己存一个 map 来使用, 如果开放底层的map会必然导致一些竞争问题,比起节约的这一点内存,实在得不偿失。

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