feat: (re)add GoTomato.go

- refactor server package
  - update package name
  - rename `StartServer()` to `Start()`
- (re)add `GoTomato.go` to call `server.Start()`
- update README
This commit is contained in:
Sebastian Mark 2024-10-19 12:05:10 +02:00
parent c59f737eb7
commit b7a79acdb0
3 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,4 @@
package main
package server
import (
"git.smsvc.net/pomodoro/GoTomato/internal/websocket"
@ -6,7 +6,7 @@ import (
"net/http"
)
func main() {
func Start() {
http.HandleFunc("/ws", websocket.HandleConnections)
log.Println("Pomodoro WebSocket server started on :8080")