ws icon indicating copy to clipboard operation
ws copied to clipboard

message rate limiter

Open carlosjpr-collab opened this issue 1 year ago • 1 comments

Hi, Is any way or option to make a message rate limter in websocket server ? thanks

carlosjpr-collab avatar Jan 02 '24 17:01 carlosjpr-collab

Hey, you can use a custom TCP listener that controls how many active connection you have. By example https://pkg.go.dev/golang.org/x/[email protected]/netutil#LimitListener

cristaloleg avatar Jan 02 '24 19:01 cristaloleg