This commit is contained in:
Gabe Kangas
2020-05-23 17:57:49 -07:00
commit cc48f86b85
84 changed files with 1978 additions and 0 deletions

19
chatserver/main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"log"
"net/http"
)
func main() {
log.SetFlags(log.Lshortfile)
// websocket server
server := NewServer("/entry")
go server.Listen()
// static files
http.Handle("/", http.FileServer(http.Dir("webroot")))
log.Fatal(http.ListenAndServe(":8080", nil))
}