Compare commits

..

5 commits

Author SHA1 Message Date
16beea02ca feat: introduce const for broadcast interval
- change ticker to use BROADCAST_INTERVAL constant
- define BROADCAST_INTERVAL as 1 second

🤖
2024-11-21 21:50:25 +01:00
f13bdff03f feat: improve broadcast loop ticker
- rename tick to ticker for clarity
- change infinite loop to range over ticker channel
- add defer statement to stop the ticker properly
- remove unnecessary channel receive operation

🤖
2024-11-21 21:50:25 +01:00
af5b578cb3 refactor: drop SendMessage() and merge into SendPermanentBroadCastMessage() 2024-11-21 21:50:25 +01:00
c31b994d58 fix: add more Mutex Locks for Clients map 2024-11-21 21:50:25 +01:00
ab2e8c161d feat: implement stale client removal after timeout
- add goroutine to remove stale clients from the connection pool
- update client struct to track `LastPong` time
- set write deadline for websocket connections
- move package variables and const to `vars.go`
- log additional information when broadcasting errors

🤖
2024-11-21 21:48:57 +01:00

Diff content is not available