Add connection start time tracking and improve logging for WebSocket lifecycle
Some checks failed
Go / build (push) Has been cancelled
Some checks failed
Go / build (push) Has been cancelled
- Introduced `startTime` field in `Listener` to log connection duration. - Enhanced diagnostics with detailed connection statistics on close. - Improved logging and error handling for PING/PONG and message lifecycle. - Updated version to v0.8.7.
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
|
||||
"lol.mleku.dev/chk"
|
||||
"lol.mleku.dev/log"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
@@ -83,6 +84,10 @@ func (s *S) MarshalJSON() (b []byte, err error) {
|
||||
}
|
||||
|
||||
func (s *S) Marshal(dst []byte) (b []byte) {
|
||||
if s == nil {
|
||||
log.I.F("tags cannot be used without initialization")
|
||||
return
|
||||
}
|
||||
b = dst
|
||||
b = append(b, '[')
|
||||
for i, ss := range *s {
|
||||
|
||||
@@ -1 +1 @@
|
||||
v0.8.6
|
||||
v0.8.7
|
||||
Reference in New Issue
Block a user