GoTomato/cmd/server/main.go

18 lines
337 B
Go
Raw Normal View History

package main
import (
"git.smsvc.net/pomodoro/GoTomato/internal/websocket"
"log"
"net/http"
)
func main() {
http.HandleFunc("/ws", websocket.HandleConnections)
log.Println("Pomodoro WebSocket server started on :8080")
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatalf("Error starting server: %v", err)
}
}