Co-authored-by: Jon Lundy <jon@xuu.cc> Reviewed-on: https://git.mills.io/prologic/msgbus/pulls/27 Co-authored-by: xuu <xuu@noreply@mills.io> Co-committed-by: xuu <xuu@noreply@mills.io>
このコミットが含まれているのは:
コミット
f062b539bc
|
@ -7,6 +7,7 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
@ -177,7 +178,10 @@ func NewSubscriber(client *Client, topic string, index int, handler msgbus.Handl
|
|||
u.Scheme = "ws"
|
||||
}
|
||||
|
||||
u.Path += fmt.Sprintf("/%s?index=%d", topic, index)
|
||||
u.Path += fmt.Sprintf("/%s", topic)
|
||||
q := u.Query()
|
||||
q.Set("index", strconv.Itoa(index))
|
||||
u.RawQuery = q.Encode()
|
||||
|
||||
url := u.String()
|
||||
|
||||
|
|
読み込み中…
新しいイシューから参照