Files
qt5-legatus-legacy/Lts/Tools/TNE-Simulator/backend/main.go
T
2026-08-13 18:33:10 +02:00

22 lines
776 B
Go
Executable File

package main
import (
serviceportsinformation "legatus-rme/backend/servicePortsInformation"
typedata "legatus-rme/backend/typeData"
"legatus-rme/backend/websocket"
)
func main() {
servicePortsInformationSocket := websocket.OpenWebsocket("servicePortsInformation", []int{7300}).(serviceportsinformation.ServicePortsInformation)
exerciseServicePortMap, exerciseIds := servicePortsInformationSocket.GetPorts()
typeDataSocket := websocket.OpenWebsocket("typeBaseData", []int{exerciseServicePortMap["0-ParticipantManagement1"]}).(typedata.TypeData)
typeData := typeDataSocket.GetTypeData()
websocket.OpenWebsocketServer(websocket.Server{
ExerciseIds: exerciseIds,
ExerciseServicePortMap: exerciseServicePortMap,
TypeData: typeData,
})
}