Make Client.Config public

This commit is contained in:
dtluna 2019-08-20 14:12:09 +03:00 committed by mattn
parent 050f1a0a87
commit 34e64bb423
3 changed files with 14 additions and 14 deletions

View file

@ -58,13 +58,13 @@ func (c *WSClient) StreamingWSList(ctx context.Context, id ID) (chan Event, erro
func (c *WSClient) streamingWS(ctx context.Context, stream, tag string) (chan Event, error) {
params := url.Values{}
params.Set("access_token", c.client.config.AccessToken)
params.Set("access_token", c.client.Config.AccessToken)
params.Set("stream", stream)
if tag != "" {
params.Set("tag", tag)
}
u, err := changeWebSocketScheme(c.client.config.Server)
u, err := changeWebSocketScheme(c.client.Config.Server)
if err != nil {
return nil, err
}