作者 yangfu

ws test

... ... @@ -63,7 +63,7 @@ func WebSocketClient(t *testing.T){
}
for i:=1;i<=num;i++{
u :=url.URL{Scheme:"ws",Host:"127.0.0.1:8080",Path:"/join"}
u :=url.URL{Scheme:"ws",Host:"127.0.0.1:8080",Path:"/upgrage"}
requestHeader :=http.Header{}
requestHeader.Add("uid",fmt.Sprintf("%d",i))
requestHeader.Add("appid",fmt.Sprintf("%d",2))
... ...
... ... @@ -16,7 +16,7 @@ import (
func Test_RunWebSocket(t *testing.T) {
//InitWebsocketConnmgrs(10)
//http.HandleFunc("/join",join)
//http.HandleFunc("/upgrade",join)
//http.HandleFunc("/",home)
//
//go TimerSendData()
... ...