wings/router/websocket
Dane Everitt fab88a380e Use buffered channels and ring-buffer logic when processing console data
This change fixes pterodactyl/panel#3921 by implementing logic to drop the oldest message in a channel and push the newest message onto the channel when the channel buffer is full.

This is distinctly different than the previous implementation which just dropped the newest messages, leading to confusing behavior on the client side when a large amount of data was sent over the connection.

Up to 10ms per channel is allowed for blocking before falling back to the drop logic.
2022-01-30 10:55:45 -05:00
..
listeners.go Use buffered channels and ring-buffer logic when processing console data 2022-01-30 10:55:45 -05:00
message.go Support websocket event to send server stats; ref pterodactyl/panel#2414 2020-09-27 09:46:00 -07:00
websocket.go Replace encoding/json with goccy/go-json for cpu and memory usage improvement 2022-01-23 15:17:40 -05:00