소스 검색

add bigdata test

Joyit 2 일 전
부모
커밋
2d926b3e7d
2개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      examples/client-ws2.go
  2. 1 0
      examples/server.go

+ 8 - 0
examples/client-ws2.go

@@ -67,6 +67,14 @@ func main() {
 		return
 	}
 	log.Println("[RESULT]<-", string(rsp.Data))
+	// 获取长数据
+	rsp = hub.GetOne(regexp.MustCompile(remoteChannel), "bigdata", nil)
+	if rsp.State != config.STATE_OK {
+		log.Println("error state:", rsp.State)
+		return
+	} else {
+		log.Println("get bigdata ok")
+	}
 
 	time.Sleep(time.Second * 5)
 	hub.Push(regexp.MustCompile(remoteChannel), "push", []byte(time.Now().GoString()))

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
examples/server.go


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.