Quellcode durchsuchen

gebruik application/json bij sturen naar jms

Harry de Boer vor 10 Jahren
Ursprung
Commit
05b468bb6b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
 }