Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Vasiliy Tolstov 2023-01-21 23:54:02 +03:00
parent 568dd266c9
commit 6b2e15c947
4 changed files with 400 additions and 0 deletions

26
test2/main.go Normal file
View file

@ -0,0 +1,26 @@
package main
import (
"fmt"
"math/rand"
"net/url"
"os"
)
func randInt(min int, max int) int {
return min + rand.Intn(max-min)
}
func main() {
if len(os.Args) < 3 {
fmt.Println("./test room server")
return
}
room := os.Args[1]
server := os.Args[2]
u := url.URL{Scheme: "wss", Host: server + ".highwebmedia.com", Path: "/ws/555/kmdqiune/websocket"}
statRoom(room, server, u)
}