Remove WebSocket configurations, NATS test publisher, and related binaries; update project settings to exclude unnecessary files.
This commit is contained in:
4
.idea/EscapeFromTeacher.iml
generated
4
.idea/EscapeFromTeacher.iml
generated
@@ -2,7 +2,9 @@
|
|||||||
<module type="WEB_MODULE" version="4">
|
<module type="WEB_MODULE" version="4">
|
||||||
<component name="Go" enabled="true" />
|
<component name="Go" enabled="true" />
|
||||||
<component name="NewModuleRootManager">
|
<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="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
BIN
bin/builder
BIN
bin/builder
Binary file not shown.
BIN
bin/client
BIN
bin/client
Binary file not shown.
BIN
bin/levelbuilder
BIN
bin/levelbuilder
Binary file not shown.
BIN
bin/server
BIN
bin/server
Binary file not shown.
12
nats.conf
12
nats.conf
@@ -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
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
49badef83664a3d83cb4ec6ab0853c9e
|
|
||||||
38
test_nats.go
38
test_nats.go
@@ -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")
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user