How does the golang server maintain a large number of websocket links?

I just contacted websocket.
I don"t know what the correct posture for the server to maintain (store) websocket links should look like.
ask
Thank you!

Mar.25,2021

refer to distributed chat server


you can use epoll/kequeue iCompo to multiplex demo

.
Menu