2021-11-15 23:06:05 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"simplemq/lib/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2021-11-15 23:23:10 +00:00
|
|
|
http.HandleFunc("/ws", server.Serve)
|
2021-11-15 23:06:05 +00:00
|
|
|
err := http.ListenAndServe(":8080", nil)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|