소스 검색

gebruik application/json bij sturen naar jms

Harry de Boer 10 년 전
부모
커밋
05b468bb6b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }