summaryrefslogtreecommitdiff
path: root/internal/packet
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-10-24 20:06:04 +0300
committerKyren223 <ulmliad223@gmail.com>2024-10-24 20:06:04 +0300
commitd294b53e68f02f4aae98fc3f2133c7696706bf0b (patch)
tree7072187c5f8034514e0f115661bae00c10ea328c /internal/packet
parenta7f743f035d0f0d14400027e4781cad76503085a (diff)
chore: add docs
Diffstat (limited to 'internal/packet')
-rw-r--r--internal/packet/packet.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/packet/packet.go b/internal/packet/packet.go
index 9365d93..9d84486 100644
--- a/internal/packet/packet.go
+++ b/internal/packet/packet.go
@@ -77,6 +77,7 @@ func (e PacketType) IsSupported() bool {
}
}
+// True for all packets that a server may push passively to the client.
func (e PacketType) IsPush() bool {
switch e {
case PacketError, PacketSendMessage: