Socket spec tests

This commit is contained in:
Hein
2025-12-23 17:27:48 +02:00
parent 2dd404af96
commit 90df4a157c
4 changed files with 28 additions and 25 deletions

View File

@@ -7,8 +7,9 @@ import (
"sync"
"time"
"github.com/bitechdev/ResolveSpec/pkg/logger"
"github.com/gorilla/websocket"
"github.com/bitechdev/ResolveSpec/pkg/logger"
)
// Connection rvepresents a WebSocket connection with its state

View File

@@ -9,11 +9,12 @@ import (
"strconv"
"time"
"github.com/google/uuid"
"github.com/gorilla/websocket"
"github.com/bitechdev/ResolveSpec/pkg/common"
"github.com/bitechdev/ResolveSpec/pkg/logger"
"github.com/bitechdev/ResolveSpec/pkg/reflection"
"github.com/google/uuid"
"github.com/gorilla/websocket"
)
// Handler handles WebSocket connections and messages

View File

@@ -75,11 +75,12 @@
package websocketspec
import (
"github.com/uptrace/bun"
"gorm.io/gorm"
"github.com/bitechdev/ResolveSpec/pkg/common"
"github.com/bitechdev/ResolveSpec/pkg/common/adapters/database"
"github.com/bitechdev/ResolveSpec/pkg/modelregistry"
"github.com/uptrace/bun"
"gorm.io/gorm"
)
// NewHandlerWithGORM creates a new Handler with GORM adapter