소스 검색

Fix stomp topics.

Harry de Boer 10 년 전
부모
커밋
9d4a5ee53a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      stomp/stomp.go

+ 2 - 2
stomp/stomp.go

@@ -38,10 +38,10 @@ func SendJson(topic string, v interface{}) {
 
 func sendJson(topic, contentType string, v interface{}) {
 	b, _ := json.Marshal(v)
-	getStompConnection().Send("/topic/go-battlecamp."+topic, contentType, b, stomp.SendOpt.NoContentLength)
+	getStompConnection().Send("/topic/battlecamp-go."+topic, contentType, b, stomp.SendOpt.NoContentLength)
 }
 
 func Subscribe(topic string) chan *stomp.Message {
-	result, _ := getStompConnection().Subscribe("/topic/go-battlecamp."+topic, stomp.AckAuto)
+	result, _ := getStompConnection().Subscribe("/topic/battlecamp-go."+topic, stomp.AckAuto)
 	return result.C
 }