diff --git a/cf.go b/cf.go index 97c286eb..3d3c0e6e 100644 --- a/cf.go +++ b/cf.go @@ -103,7 +103,7 @@ Options: -h --help --version` - args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.2", false) + args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.3", false) color.Output = ansi.NewAnsiStdout() config.Init() err := cmd.Eval(args) diff --git a/client/watch.go b/client/watch.go index b3710075..c0aaa72a 100644 --- a/client/watch.go +++ b/client/watch.go @@ -389,7 +389,7 @@ func (c *Client) WatchSubmission(myURL string, n int, line bool) (err error) { display(submissions, true, &maxWidth, line) channels := findChannel(body) - url := fmt.Sprintf(`wss://pubsub.codeforces.com/ws/%v?_=%v&tag=&time=&eventid=`, + url := fmt.Sprintf(`ws://pubsub.codeforces.com/ws/%v?_=%v&tag=&time=&eventid=`, strings.Join(channels[:], "/"), time.Now().UTC().Format("20060102150405")) return watch(url, channels[0], submissions, &maxWidth, line)