Private
Public Access
1
0

Remove WebSocket configurations, NATS test publisher, and related binaries; update project settings to exclude unnecessary files.

This commit is contained in:
Sebastian Unterschütz
2026-01-04 14:35:37 +01:00
parent 95d61bf66e
commit 73928405a8
8 changed files with 3 additions and 52 deletions

View File

@@ -2,7 +2,9 @@
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.idea/dataSources" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,12 +0,0 @@
# NATS Server Konfiguration mit WebSocket Support
port: 4222
http_port: 8222
# WebSocket Support für Browser-Clients
websocket {
port: 9222
no_tls: true
}
# JetStream aktivieren
jetstream: enabled

View File

@@ -1 +0,0 @@
49badef83664a3d83cb4ec6ab0853c9e

View File

@@ -1,38 +0,0 @@
package main
import (
"log"
"time"
"git.zb-server.de/ZB-Server/EscapeFromTeacher/pkg/game"
"github.com/nats-io/nats.go"
)
func main() {
log.Println("🧪 NATS Test Publisher startet...")
nc, err := nats.Connect("nats://localhost:4222")
if err != nil {
log.Fatal("❌ Verbindung fehlgeschlagen:", err)
}
defer nc.Close()
ec, _ := nats.NewEncodedConn(nc, nats.JSON_ENCODER)
log.Println("✅ Verbunden. Sende Test-Nachricht...")
req := game.JoinRequest{
Name: "TestPlayer",
RoomID: "testroom",
}
err = ec.Publish("game.join", req)
if err != nil {
log.Println("❌ Publish Fehler:", err)
} else {
log.Println("📤 Test-Nachricht gesendet!")
}
time.Sleep(2 * time.Second)
log.Println("✅ Test abgeschlossen")
}