Шлюз server-sfu

This commit is contained in:
set
2026-03-09 16:21:28 +02:00
commit 20374ab571
4 changed files with 284 additions and 0 deletions

16
main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"g365sfu/socket"
"net/http"
"os"
)
func main() {
http.HandleFunc("/", socket.HandleWebSocket)
port := os.Getenv("PORT")
if port == "" {
port = "1001"
}
http.ListenAndServe(":"+port, nil)
}