____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.0.0
High performance, minimalist Go web framework
____________________________________O/_______
O\
⇨ http server started on [::]:80
2019/04/03 20:46:22 ws upgrader.Upgrade
2019/04/03 20:46:22 defer ws.Close()
2019/04/03 20:46:22 hub created Hub: *main.Hub &{map[] 0xc000188c00 0xc000188c60 0xc000188cc0}
2019/04/03 20:46:22 hub running
new client object and client.hub.register<-client
h.register Client registered
2019/04/03 20:46:22 message c.conn.ReadMessage(): []
{"time":"2019-04-03T20:46:22.6634142+02:00","id":"","remote_ip":"::1","host":"localhost","method":"GET","uri":"/wc/gows","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36","status":200,"error":"","latency":39891800,"latency_human":"39.8918ms","bytes_in":0,"bytes_out":0}
2019/04/03 20:46:22 client readMsg c.hub.unregister now and c.conn.close
h.unregister Client deleted and close send
c.send not ok: []
2019/04/03 20:46:22 client writeMsg closing connection
Did I forget to add something here like a websocket dialer? Do I have to check for empty messages
? The rest of my code is exactly the same as you can see in the gorilla chat example.