Explorar el Código

gebruik application/json bij sturen naar jms

Harry de Boer hace 10 años
padre
commit
05b468bb6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      games/gameserver.go

+ 1 - 1
games/gameserver.go

@@ -66,7 +66,7 @@ func (games GameServer) AddGame(x, y int, stompConnection *extStomp.Conn) *Game
 		GameId: game.Id,
 	}
 	b, _ := json.Marshal(stompGameStart)
-	stompConnection.Send("/topic/go-battlecamp.game", "", b)
+	stompConnection.Send("/topic/go-battlecamp.game", "application/json", b)
 	return game
 }