add hsh responce
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m4s
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m4s
This commit is contained in:
@@ -53,6 +53,8 @@ func (h *Hub) readLoop(conn *websocket.Conn) {
|
|||||||
h.addEntity(id, player)
|
h.addEntity(id, player)
|
||||||
h.Clients[id] = conn
|
h.Clients[id] = conn
|
||||||
log.Println("entity [player] added:", id)
|
log.Println("entity [player] added:", id)
|
||||||
|
confimMessage := models.Message{Type: MSG_WELCOME, Payload: []byte{}}
|
||||||
|
conn.WriteMessage(websocket.BinaryMessage, confimMessage.Encode())
|
||||||
|
|
||||||
case MSG_INPUT:
|
case MSG_INPUT:
|
||||||
reader := models.NewReader(msg.Payload)
|
reader := models.NewReader(msg.Payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user