add getUserById helper in http delete old connections code from http

This commit is contained in:
gitGnome
2026-04-08 14:10:43 +02:00
parent 26fef0a777
commit 9804a700ce
5 changed files with 69 additions and 213 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package main
import (
"go-socket/Enums/ConnectionState"
"time"
"github.com/coder/websocket"
@@ -25,7 +26,7 @@ type Connection struct {
MessagesBuf [MaxDirectMsgCache]*Message `json:"-"`
RequestorId uint32 `json:"requestorId"`
RecipientId uint32 `json:"recipientId"`
State uint8 `json:"state"`
State ConnectionState.ConnectionState `json:"state"`
}
type Message struct {