Added a rudimentary client.
This commit is contained in:
@ -9,16 +9,14 @@ import (
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
func (server *Server) Start() error {
|
||||
func (server *Server) Start() {
|
||||
// Start the server
|
||||
http.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
handleConnections(w, r)
|
||||
})
|
||||
log.Fatal(http.ListenAndServe(server.ListenAddress+":"+strconv.Itoa(server.ListenPort), nil))
|
||||
|
||||
time.Sleep(600 * time.Second)
|
||||
|
||||
return nil
|
||||
// return nil
|
||||
}
|
||||
|
||||
var upgrader = websocket.Upgrader{
|
||||
|
Reference in New Issue
Block a user