diff --git a/controllers/connection.go b/controllers/connection.go index 3baa611..ad476b2 100644 --- a/controllers/connection.go +++ b/controllers/connection.go @@ -53,6 +53,8 @@ func (h *Hub) readLoop(conn *websocket.Conn) { h.addEntity(id, player) h.Clients[id] = conn log.Println("entity [player] added:", id) + confimMessage := models.Message{Type: MSG_WELCOME, Payload: []byte{}} + conn.WriteMessage(websocket.BinaryMessage, confimMessage.Encode()) case MSG_INPUT: reader := models.NewReader(msg.Payload)