2022-10-22 18:01:55 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-11-19 10:41:10 +00:00
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
"ws_server/server"
|
2022-10-22 18:01:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-11-19 10:41:10 +00:00
|
|
|
http.HandleFunc("/", server.SocketHandler)
|
|
|
|
|
|
|
|
err := http.ListenAndServe("localhost:8080", nil)
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
log.Println("We ended")
|
2022-10-22 18:01:55 +00:00
|
|
|
}
|